diff options
author | Max <post@wickenrode.com> | 2015-10-21 00:39:34 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-21 00:39:34 +0200 |
commit | ffbf7a4a9d4c617afd47a5428a17e0646b9bce97 (patch) | |
tree | 9fe49434f160567671b1fe844b1fd590db1108af /Source/SPBundleEditorController.m | |
parent | 5357fd1375d19a6c5de96293b3899f430422a3c0 (diff) | |
download | sequelpro-ffbf7a4a9d4c617afd47a5428a17e0646b9bce97.tar.gz sequelpro-ffbf7a4a9d4c617afd47a5428a17e0646b9bce97.tar.bz2 sequelpro-ffbf7a4a9d4c617afd47a5428a17e0646b9bce97.zip |
Fix bundle commands no longer working in popup field editor (and possibly other cases) (#2299)
Replacing some [NSApp mainWindow] with their actually intended calls [NSApp keyWindow] and [view window]
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r-- | Source/SPBundleEditorController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index a0c7d7ce..7757c0ba 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -1334,7 +1334,7 @@ //abort editing [control abortEditing]; - [[NSApp mainWindow] makeFirstResponder:commandsOutlineView]; + [[commandsOutlineView window] makeFirstResponder:commandsOutlineView]; return YES; } else{ return NO; @@ -1452,7 +1452,7 @@ (action == @selector(displayBundleMetaInfo:))) { // Allow to record short-cuts used by the Bundle Editor - if([[NSApp mainWindow] firstResponder] == keyEquivalentField) return NO; + if([[NSApp keyWindow] firstResponder] == keyEquivalentField) return NO; return ([[commandBundleTreeController selectedObjects] count] == 1 && ![[[commandBundleTreeController selectedObjects] objectAtIndex:0] objectForKey:kChildrenKey]); } |