diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-03-18 20:39:24 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-03-18 20:39:24 +0000 |
commit | 0efe0ba02c0b6a562496a0d87325e61f8da7fbfe (patch) | |
tree | b9835d8aa469abd7ad103a92dde87813e63a9e4b /Source/SPQueryController.m | |
parent | a6ffcaa5e07bb286b06f761d902e44b7fefaaaed (diff) | |
download | sequelpro-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.m | 4 |
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 |