aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2009-08-11 20:45:28 +0000
committermltownsend <mltownsend@gmail.com>2009-08-11 20:45:28 +0000
commit9cbae0171595e4afbd6109098b89f1922c623827 (patch)
tree8d97d4d58f118ee1d44e65c32327008a033cae96 /Source/TablesList.m
parentf5dd205cc35a1825152dc2a32bc339182706fcc8 (diff)
downloadsequelpro-9cbae0171595e4afbd6109098b89f1922c623827.tar.gz
sequelpro-9cbae0171595e4afbd6109098b89f1922c623827.tar.bz2
sequelpro-9cbae0171595e4afbd6109098b89f1922c623827.zip
Fix some MainMenu references by index.
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 4f852f9b..8be7a505 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -1090,7 +1090,7 @@
// Set gear menu items Remove/Duplicate table/view and mainMenu > Table items
// according to the table types
- NSMenu *tableSubMenu = [[[NSApp mainMenu] itemAtIndex:5] submenu];
+ NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTitle:@"Table"] submenu];
if(selectedTableType == SP_TABLETYPE_VIEW)
{