aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseViewController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-01-31 23:39:19 +0000
committerrowanbeentje <rowan@beent.je>2011-01-31 23:39:19 +0000
commita5adeec3a56b0d1c47ded03187840d92f63b2976 (patch)
treee6a5a8bd231c6bc331a220496a6deb0190f65560 /Source/SPDatabaseViewController.m
parent01f5d5e8bae1d39096c418678e82f59c021c195d (diff)
downloadsequelpro-a5adeec3a56b0d1c47ded03187840d92f63b2976.tar.gz
sequelpro-a5adeec3a56b0d1c47ded03187840d92f63b2976.tar.bz2
sequelpro-a5adeec3a56b0d1c47ded03187840d92f63b2976.zip
- Ensure window title updates occur on the main thread, fixing crashes under race conditions
Diffstat (limited to 'Source/SPDatabaseViewController.m')
-rw-r--r--Source/SPDatabaseViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDatabaseViewController.m b/Source/SPDatabaseViewController.m
index e95b6b41..a7867c53 100644
--- a/Source/SPDatabaseViewController.m
+++ b/Source/SPDatabaseViewController.m
@@ -287,7 +287,7 @@
triggersLoaded = NO;
// Update the window title
- [[self onMainThread] updateWindowTitle:self];
+ [self updateWindowTitle:self];
// Add a history entry
[spHistoryControllerInstance updateHistoryEntries];
@@ -391,7 +391,7 @@
NSString *tableEncoding = nil;
// Update the window title
- [[self onMainThread] updateWindowTitle:self];
+ [self updateWindowTitle:self];
// Reset table information caches
[tableDataInstance resetAllData];