Added autotype button to toolbar

This commit is contained in:
Michael Starke
2018-03-06 18:15:00 +01:00
parent ee604337f8
commit d58b406c37
7 changed files with 20 additions and 5 deletions

View File

@@ -414,8 +414,8 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
*/
// only lock if we do not have user interaction that cannot be dismissed!
if(!self.lockedForFileChange) {
for(NSWindow *sheet in [self windowForSheet].sheets) {
[[self windowForSheet] endSheet:sheet];
for(NSWindow *sheet in self.windowForSheet.sheets) {
[self.windowForSheet endSheet:sheet];
}
if(self.documentEdited) {
[self saveDocumentWithDelegate:self didSaveSelector:@selector(_lockDatabaseForDocument:didSave:contextInfo:) contextInfo:NULL];