aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-25 20:40:26 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-25 20:40:26 +0000
commit36af2c018db397c64dd7635b7c79476b4df6d610 (patch)
treeeb0a22035cd0099cc2edff1a8c7365aa6e8f0d95 /Source/SPAppController.m
parent29cb06ee02f5393c51d7b45d60e314a94c08e5b2 (diff)
downloadsequelpro-36af2c018db397c64dd7635b7c79476b4df6d610.tar.gz
sequelpro-36af2c018db397c64dd7635b7c79476b4df6d610.tar.bz2
sequelpro-36af2c018db397c64dd7635b7c79476b4df6d610.zip
• Bundle Editor
- some GUI improvements and tooltips for outline view
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 609593a8..b34cb0d5 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -1170,6 +1170,7 @@
@"executeBundleItemForApp:", nil];
NSInteger k = 0;
+ BOOL bundleOtherThanGeneralFound = NO;
for(NSString* scope in scopes) {
NSArray *bundleCategories = [[NSApp delegate] bundleCategoriesForScope:scope];
@@ -1195,7 +1196,8 @@
} else {
bundleMenu = menu;
- [menu addItem:[NSMenuItem separatorItem]];
+ if(bundleOtherThanGeneralFound)
+ [menu addItem:[NSMenuItem separatorItem]];
}
// Add found Category submenus
@@ -1220,7 +1222,7 @@
keyEq = @"";
NSMenuItem *mItem = [[[NSMenuItem alloc] initWithTitle:[item objectForKey:SPBundleInternLabelKey] action:NSSelectorFromString([scopeSelector objectAtIndex:k]) keyEquivalent:keyEq] autorelease];
-
+ bundleOtherThanGeneralFound = YES;
if([keyEq length])
[mItem setKeyEquivalentModifierMask:[[[item objectForKey:SPBundleFileKeyEquivalentKey] objectAtIndex:1] intValue]];