aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-01-04 21:10:26 +0100
committerMax <post@wickenrode.com>2015-01-04 21:10:26 +0100
commit5b55d8c4d24b0c24a5dc74a49cfd70448146d582 (patch)
treeda23678da48ba88a6022f1fee0fc3d61d3f23c9f /Source/SPWindowController.m
parent2735e15bf5d4b3a976435ebb29ca9073de0e5071 (diff)
downloadsequelpro-5b55d8c4d24b0c24a5dc74a49cfd70448146d582.tar.gz
sequelpro-5b55d8c4d24b0c24a5dc74a49cfd70448146d582.tar.bz2
sequelpro-5b55d8c4d24b0c24a5dc74a49cfd70448146d582.zip
Replace some "magic numbers" with constants
Diffstat (limited to 'Source/SPWindowController.m')
-rw-r--r--Source/SPWindowController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index f90b423d..6edbb684 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -83,8 +83,8 @@ enum {
[self _setUpTabBar];
// Retrieve references to the 'Close Window' and 'Close Tab' menus. These are updated as window focus changes.
- closeWindowMenuItem = [[[[NSApp mainMenu] itemWithTag:SPMainMenuFile] submenu] itemWithTag:1003];
- closeTabMenuItem = [[[[NSApp mainMenu] itemWithTag:SPMainMenuFile] submenu] itemWithTag:1103];
+ closeWindowMenuItem = [[[[NSApp mainMenu] itemWithTag:SPMainMenuFile] submenu] itemWithTag:SPMainMenuFileClose];
+ closeTabMenuItem = [[[[NSApp mainMenu] itemWithTag:SPMainMenuFile] submenu] itemWithTag:SPMainMenuFileCloseTab];
// Register for drag start and stop notifications - used to show/hide tab bars
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tabDragStarted:) name:PSMTabDragDidBeginNotification object:nil];