aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-18 20:39:24 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-18 20:39:24 +0000
commit0efe0ba02c0b6a562496a0d87325e61f8da7fbfe (patch)
treeb9835d8aa469abd7ad103a92dde87813e63a9e4b /Source/SPQueryController.m
parenta6ffcaa5e07bb286b06f761d902e44b7fefaaaed (diff)
downloadsequelpro-0efe0ba02c0b6a562496a0d87325e61f8da7fbfe.tar.gz
sequelpro-0efe0ba02c0b6a562496a0d87325e61f8da7fbfe.tar.bz2
sequelpro-0efe0ba02c0b6a562496a0d87325e61f8da7fbfe.zip
• fixed "Clear global history" really removes the global history list in the Prefs
Diffstat (limited to 'Source/SPQueryController.m')
-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