aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-21 00:39:34 +0200
committerMax <post@wickenrode.com>2015-10-21 03:27:25 +0200
commitb089a0d3249d3139bedc2679a36efa705d2bae04 (patch)
treedf43a2984520b318f0b8c281d85f2defd72d3943 /Source/SPTextViewAdditions.m
parent91abde0c94df8bd7f63bd4e5d062562b0827adbd (diff)
downloadsequelpro-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/SPTextViewAdditions.m')
-rw-r--r--Source/SPTextViewAdditions.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index 56103a53..2e7d796d 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -843,7 +843,7 @@
if([keyEq length])
[mItem setKeyEquivalentModifierMask:[[[item objectForKey:SPBundleFileKeyEquivalentKey] objectAtIndex:1] intValue]];
- [mItem setTarget:[[NSApp mainWindow] firstResponder]];
+ [mItem setTarget:[[NSApp keyWindow] firstResponder]];
if([item objectForKey:SPBundleFileTooltipKey])
[mItem setToolTip:[item objectForKey:SPBundleFileTooltipKey]];