diff options
author | rowanbeentje <rowan@beent.je> | 2010-04-15 01:33:32 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-04-15 01:33:32 +0000 |
commit | 03a3560910ec5d18d662706f8dc6c94c15f326b9 (patch) | |
tree | 1dfa10832fccbc8a7c9406d142244b5db2249d82 /Source/TableDocument.m | |
parent | 771c3ff3aa15188771881e2447d491b359d4c5da (diff) | |
download | sequelpro-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.m | 5 |
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]; } /** |