When closing a database, Panorama won't save & close if current record has been edited

Issue #1214 resolved
Jim Rea repo owner created an issue

If the current line has been edited and the line is locked, Panorama won’t close or quit until the record is locked. You can do this by moving to a different record, by saving, etc. Somehow this needs to happen automatically, but only if the database is being closed, not for regular auto-saves.

See DatabaseDocument.m line 745

if (saveOperation == NSAutosaveInPlaceOperation) {

if ([documentDatabase anyRecordLocked]) { // if a record is locked, don't auto-save

completionHandler([NSError errorWithDomain:NSCocoaErrorDomain





Comments (1)

  1. Log in to comment