aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-02-01 05:26:38 +0000
committerBibiko <bibiko@eva.mpg.de>2011-02-01 05:26:38 +0000
commit2e5835045251c7b520f267bf2577fee65ffd6105 (patch)
treeb23f101f4c36f7ef11949441b4e94170f8e54f10 /Source/SPDatabaseDocument.m
parenta5adeec3a56b0d1c47ded03187840d92f63b2976 (diff)
downloadsequelpro-2e5835045251c7b520f267bf2577fee65ffd6105.tar.gz
sequelpro-2e5835045251c7b520f267bf2577fee65ffd6105.tar.bz2
sequelpro-2e5835045251c7b520f267bf2577fee65ffd6105.zip
• fixed updateWindowTitle: threading issue
- if (![NSThread isMainThread]) return [self updateWindowTitle:sender]; will run forever if called not from main thread; instead do: if (![NSThread isMainThread]) return [[self onMainThread] updateWindowTitle:sender];
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index adff490d..dd368e27 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -3307,7 +3307,7 @@
{
// Ensure a call on the main thread
- if (![NSThread isMainThread]) return [self updateWindowTitle:sender];
+ if (![NSThread isMainThread]) return [[self onMainThread] updateWindowTitle:sender];
NSMutableString *tabTitle;
NSMutableString *windowTitle;