mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 04:42:29 +00:00
Fixed issue with some sheets hanging around when the database is locked
This commit is contained in:
@@ -413,6 +413,9 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
|||||||
*/
|
*/
|
||||||
// only lock if we do not have user interaction that cannot be dismissed!
|
// only lock if we do not have user interaction that cannot be dismissed!
|
||||||
if(!self.lockedForFileChange) {
|
if(!self.lockedForFileChange) {
|
||||||
|
for(NSWindow *sheet in [self windowForSheet].sheets) {
|
||||||
|
[[self windowForSheet] endSheet:sheet];
|
||||||
|
}
|
||||||
[self saveDocumentWithDelegate:self didSaveSelector:@selector(_lockDatabaseForDocument:didSave:contextInfo:) contextInfo:NULL];
|
[self saveDocumentWithDelegate:self didSaveSelector:@selector(_lockDatabaseForDocument:didSave:contextInfo:) contextInfo:NULL];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user