diff options
author | Max <post@wickenrode.com> | 2015-10-21 00:39:34 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-21 03:27:25 +0200 |
commit | b089a0d3249d3139bedc2679a36efa705d2bae04 (patch) | |
tree | df43a2984520b318f0b8c281d85f2defd72d3943 /Source/SPTablesList.m | |
parent | 91abde0c94df8bd7f63bd4e5d062562b0827adbd (diff) | |
download | sequelpro-b089a0d3249d3139bedc2679a36efa705d2bae04.tar.gz sequelpro-b089a0d3249d3139bedc2679a36efa705d2bae04.tar.bz2 sequelpro-b089a0d3249d3139bedc2679a36efa705d2bae04.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/SPTablesList.m')
-rw-r--r-- | Source/SPTablesList.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 74523da3..4a57a174 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -1634,7 +1634,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [textView methodForSelector:command] == [textView methodForSelector:@selector(complete:)] ) { [control abortEditing]; - [[NSApp mainWindow] makeFirstResponder:tablesListView]; + [[tablesListView window] makeFirstResponder:tablesListView]; return YES; } else{ |