From 2e5835045251c7b520f267bf2577fee65ffd6105 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 1 Feb 2011 05:26:38 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20updateWindowTitle:=20threading=20is?= =?UTF-8?q?sue=20-=20if=20(![NSThread=20isMainThread])=20return=20[self=20?= =?UTF-8?q?updateWindowTitle:sender];=20will=20run=20forever=20if=20called?= =?UTF-8?q?=20not=20from=20main=20thread;=20instead=20do:=20if=20(![NSThre?= =?UTF-8?q?ad=20isMainThread])=20return=20[[self=20onMainThread]=20updateW?= =?UTF-8?q?indowTitle:sender];?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDatabaseDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3