aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-07 11:56:49 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-07 11:56:49 +0000
commitd6560942643fd41f3aa3f378c595387a26d35bdc (patch)
tree8f577767c428065d2214add9c6abd0cafe8a65d9 /Source
parent3e89faa2a094ad0b996757fc8c3fc90d332b625f (diff)
downloadsequelpro-d6560942643fd41f3aa3f378c595387a26d35bdc.tar.gz
sequelpro-d6560942643fd41f3aa3f378c595387a26d35bdc.tar.bz2
sequelpro-d6560942643fd41f3aa3f378c595387a26d35bdc.zip
• fixed issue for starting General scope commands via keyboard short-cut
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 3054892f..7d6c11ed 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -1491,7 +1491,7 @@
}
}
else if([scope isEqualToString:SPBundleScopeGeneral]) {
- if(checkForKeyEquivalents && [assignedKeyEquivalents objectForKey:keyEqKey]) {
+ if(checkForKeyEquivalents && [assignedKeyEquivalents count]) {
NSInteger idx = 0;
if([assignedKeyEquivalents count] > 1)
idx = [SPChooseMenuItemDialog withItems:assignedKeyEquivalents atPosition:[NSEvent mouseLocation]];
@@ -1502,7 +1502,7 @@
NSMenuItem *aMenuItem = [[[NSMenuItem alloc] init] autorelease];
[aMenuItem setTag:0];
[aMenuItem setToolTip:[eq objectForKey:@"path"]];
- [[[NSApp mainWindow] firstResponder] executeBundleItemForApp:aMenuItem];
+ [self executeBundleItemForApp:aMenuItem];
}
}
} else {