aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
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/TableDocument.m
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/TableDocument.m')
-rw-r--r--Source/TableDocument.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index b0465c0b..2e2d045d 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1220,7 +1220,6 @@
[taskCancelButton setHidden:YES];
// Set flags and prevent further UI interaction in this window
- [historyControl setEnabled:NO];
databaseListIsSelectable = NO;
[[NSNotificationCenter defaultCenter] postNotificationName:SPDocumentTaskStartNotification object:self];
[mainToolbar validateVisibleItems];
@@ -1336,7 +1335,6 @@
[taskProgressIndicator setIndeterminate:YES];
// Re-enable window interface
- [historyControl setEnabled:YES];
databaseListIsSelectable = YES;
[[NSNotificationCenter defaultCenter] postNotificationName:SPDocumentTaskEndNotification object:self];
[mainToolbar validateVisibleItems];
@@ -3437,6 +3435,9 @@
// update the toolbar item size
[self updateChooseDatabaseToolbarItemWidth];
+
+ // The history controller needs to track toolbar item state - trigger setup.
+ [spHistoryControllerInstance setupInterface];
}
/**