diff options
author | stuconnolly <stuart02@gmail.com> | 2009-09-12 21:03:01 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-09-12 21:03:01 +0000 |
commit | 1e2b95b113242895a988d0db02e7a7fe1708a63d (patch) | |
tree | 01a9ac3b03c7abcd58e2eb0410356ca54f0a1729 | |
parent | f4bede9def108d8fd25334871ca00971687c4e51 (diff) | |
download | sequelpro-1e2b95b113242895a988d0db02e7a7fe1708a63d.tar.gz sequelpro-1e2b95b113242895a988d0db02e7a7fe1708a63d.tar.bz2 sequelpro-1e2b95b113242895a988d0db02e7a7fe1708a63d.zip |
Forgot to assign the back/forward history menu item's tags resulting in incorrect navigation and menu item validation.
-rw-r--r-- | Interfaces/English.lproj/MainMenu.xib | 1 | ||||
-rw-r--r-- | Source/SPHistoryController.h | 2 | ||||
-rw-r--r-- | Source/SPHistoryController.m | 4 | ||||
-rw-r--r-- | Source/TableDocument.m | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/Interfaces/English.lproj/MainMenu.xib b/Interfaces/English.lproj/MainMenu.xib index f9cca44b..6a13bfe1 100644 --- a/Interfaces/English.lproj/MainMenu.xib +++ b/Interfaces/English.lproj/MainMenu.xib @@ -1128,6 +1128,7 @@ <int key="NSMnemonicLoc">2147483647</int> <reference key="NSOnImage" ref="625762401"/> <reference key="NSMixedImage" ref="315854375"/> + <int key="NSTag">1</int> </object> <object class="NSMenuItem" id="510805568"> <reference key="NSMenu" ref="466354362"/> diff --git a/Source/SPHistoryController.h b/Source/SPHistoryController.h index 58f66352..524c19ae 100644 --- a/Source/SPHistoryController.h +++ b/Source/SPHistoryController.h @@ -52,7 +52,7 @@ enum sphistory_view_types // Interface interaction - (void) updateToolbarItem; -- (void)goBackwardInHistory; +- (void)goBackInHistory; - (void)goForwardInHistory; - (IBAction) historyControlClicked:(NSSegmentedControl *)theControl; - (unsigned int) currentlySelectedView; diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m index e3fbb9cf..242fd572 100644 --- a/Source/SPHistoryController.m +++ b/Source/SPHistoryController.m @@ -106,7 +106,7 @@ /** * Go backward in the history. */ -- (void)goBackwardInHistory +- (void)goBackInHistory { if (historyPosition == NSNotFound || !historyPosition) return; @@ -133,7 +133,7 @@ { // Back button clicked: case 0: - [self goBackwardInHistory]; + [self goBackInHistory]; break; // Forward button clicked: diff --git a/Source/TableDocument.m b/Source/TableDocument.m index dbb4e2f7..01d73820 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -505,7 +505,7 @@ { // Go backward case 0: - [spHistoryControllerInstance goBackwardInHistory]; + [spHistoryControllerInstance goBackInHistory]; break; // Go forward case 1: |