aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPHistoryController.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-04-15 01:33:32 +0000
committerrowanbeentje <rowan@beent.je>2010-04-15 01:33:32 +0000
commit03a3560910ec5d18d662706f8dc6c94c15f326b9 (patch)
tree1dfa10832fccbc8a7c9406d142244b5db2249d82 /Source/SPHistoryController.h
parent771c3ff3aa15188771881e2447d491b359d4c5da (diff)
downloadsequelpro-03a3560910ec5d18d662706f8dc6c94c15f326b9.tar.gz
sequelpro-03a3560910ec5d18d662706f8dc6c94c15f326b9.tar.bz2
sequelpro-03a3560910ec5d18d662706f8dc6c94c15f326b9.zip
- Tweak the history controller to track the toolbar item visibility, and only update it when visible - this fixes crashes after the toolbar item is removed from the toolbar and then updated (eg http://spbug.com/l/114 )
Diffstat (limited to 'Source/SPHistoryController.h')
-rw-r--r--Source/SPHistoryController.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPHistoryController.h b/Source/SPHistoryController.h
index 1ae1456c..b0f3e082 100644
--- a/Source/SPHistoryController.h
+++ b/Source/SPHistoryController.h
@@ -37,6 +37,7 @@
NSMutableDictionary *tableContentStates;
NSUInteger historyPosition;
BOOL modifyingState;
+ BOOL toolbarItemVisible;
}
@property (readonly) NSUInteger historyPosition;
@@ -49,6 +50,7 @@
- (void)goForwardInHistory;
- (IBAction) historyControlClicked:(NSSegmentedControl *)theControl;
- (NSUInteger) currentlySelectedView;
+- (void) setupInterface;
// Adding or updating history entries
- (void) updateHistoryEntries;