From 0efe0ba02c0b6a562496a0d87325e61f8da7fbfe Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 18 Mar 2010 20:39:24 +0000 Subject: =?UTF-8?q?=E2=80=A2=C2=A0fixed=20"Clear=20global=20history"=20rea?= =?UTF-8?q?lly=20removes=20the=20global=20history=20list=20in=20the=20Pref?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPQueryController.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source') diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m index b7fd77c3..eba1f753 100644 --- a/Source/SPQueryController.m +++ b/Source/SPQueryController.m @@ -647,6 +647,10 @@ static SPQueryController *sharedQueryController = nil; if([[doc valueForKeyPath:@"customQueryInstance"] respondsToSelector:@selector(historyItemsHaveBeenUpdated:)]) [[doc valueForKeyPath:@"customQueryInstance"] performSelectorOnMainThread:@selector(historyItemsHaveBeenUpdated:) withObject:self waitUntilDone:NO]; + + // User did choose to clear the global history list + if(![fileURL isFileURL] && ![historyArray count]) + [prefs setObject:historyArray forKey:SPQueryHistory]; } - (void)addFavorite:(NSDictionary *)favorite forFileURL:(NSURL *)fileURL -- cgit v1.2.3