aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleEditorController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-06-11 20:34:33 +0200
committerMax <post@wickenrode.com>2015-06-11 20:37:04 +0200
commit658e61b113db99d65bebd22a767e06a43d52a240 (patch)
treec89d52de492be897d3b4587fffcb867eda08f48c /Source/SPBundleEditorController.m
parent4a11179260951f597cf52d86581d68cd8a98b68d (diff)
downloadsequelpro-658e61b113db99d65bebd22a767e06a43d52a240.tar.gz
sequelpro-658e61b113db99d65bebd22a767e06a43d52a240.tar.bz2
sequelpro-658e61b113db99d65bebd22a767e06a43d52a240.zip
Fix a rare crash when SSH connections failed (caused by a race condition) (fixes #2132)
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r--Source/SPBundleEditorController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m
index 01aca387..f38ffb28 100644
--- a/Source/SPBundleEditorController.m
+++ b/Source/SPBundleEditorController.m
@@ -237,7 +237,7 @@ static NSString *SPSaveBundleAction = @"SPSaveBundle";
{inputNoneArray, inputNonePopUpMenu, NULL}
};
- for(unsigned int i=0;i<(sizeof(menus)/sizeof(struct _menuItemMap));i++) {
+ for(unsigned int i=0;i<COUNT_OF(menus);i++) {
struct _menuItemMap *menu = &menus[i];
for(NSString* title in menu->items) {
NSMenuItem *anItem = [[NSMenuItem alloc] initWithTitle:[menuItemTitles objectForKey:title] action:menu->action keyEquivalent:@""];