diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-22 23:07:03 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-22 23:07:03 +0000 |
commit | 9892a96b80073686b0dd1205d4f859b10d32336f (patch) | |
tree | f4f4caaa72f5983dfc23a1f686603b61baf0374c /Source/SPHistoryController.m | |
parent | 6728ccd128a5320256ac51c0a617f0c76b331ea7 (diff) | |
download | sequelpro-9892a96b80073686b0dd1205d4f859b10d32336f.tar.gz sequelpro-9892a96b80073686b0dd1205d4f859b10d32336f.tar.bz2 sequelpro-9892a96b80073686b0dd1205d4f859b10d32336f.zip |
- Simplify table source table setup and make thread safe. This should address http://log.sequelpro.com/view/43 , http://log.sequelpro.com/view/46
- Improve keepalive timer interaction - this should address http://log.sequelpro.com/view/74 and http://log.sequelpro.com/view/71
- Further thread safety improvements to Custom Query, Table Document, and the history controller
Diffstat (limited to 'Source/SPHistoryController.m')
-rw-r--r-- | Source/SPHistoryController.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m index 04d8a765..991c6e1e 100644 --- a/Source/SPHistoryController.m +++ b/Source/SPHistoryController.m @@ -27,6 +27,7 @@ #import "TablesList.h" #import "SPHistoryController.h" #import "SPStringAdditions.h" +#import "SPMainThreadTrampoline.h" @implementation SPHistoryController @@ -263,7 +264,7 @@ if ([history count] > 50) [history removeObjectAtIndex:0]; historyPosition = [history count] - 1; - [self updateToolbarItem]; + [[self onMainThread] updateToolbarItem]; } #pragma mark - @@ -318,7 +319,7 @@ { [tableContentInstance loadTable:[historyEntry objectForKey:@"table"]]; modifyingState = NO; - [self updateToolbarItem]; + [[self onMainThread] updateToolbarItem]; [theDocument endTask]; [loadPool drain]; return; @@ -380,7 +381,7 @@ } modifyingState = NO; - [self updateToolbarItem]; + [[self onMainThread] updateToolbarItem]; // End the task [theDocument endTask]; |