aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPQueryController.m4
1 files changed, 4 insertions, 0 deletions
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