diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-03 11:57:59 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-03 11:57:59 +0000 |
commit | 8a8ba1fecaf8d51a964d09c04d6065b3769dea5f (patch) | |
tree | dc3dfc46e758cc430f54fef3ce316170c3b22db4 | |
parent | 623cae262d45352bf61ef15882d5164b2ea3a197 (diff) | |
download | sequelpro-8a8ba1fecaf8d51a964d09c04d6065b3769dea5f.tar.gz sequelpro-8a8ba1fecaf8d51a964d09c04d6065b3769dea5f.tar.bz2 sequelpro-8a8ba1fecaf8d51a964d09c04d6065b3769dea5f.zip |
• commented out a not yet fully implemented feature in SPQueryConsole in order to be able to open files from Finder correctly
Note: I tested it with 21 spf files (different connections, encrypt state, auto connect state, non-readable spf files etc) selected in Finder ⇢ ⌘O ⇢ all of them were handled correctly
-rw-r--r-- | Source/SPQueryConsole.m | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index 312b637b..663855fe 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -344,19 +344,19 @@ static SPQueryConsole *sharedQueryConsole = nil; } // Register a spf file - if(![favoritesContainer objectForKey:[fileURL absoluteString]]) { - if(contextInfo != nil && [contextInfo objectForKey:@"queryFavorites"] != nil) - [favoritesContainer setObject:[[contextInfo objectForKey:@"queryFavorites"] mutableCopy] forKey:[fileURL absoluteString]]; - else - [favoritesContainer setObject:[NSMutableArray array] forKey:[fileURL absoluteString]]; - } - if(![historyContainer objectForKey:[fileURL absoluteString]]) { - if(contextInfo != nil && [contextInfo objectForKey:@"queryHistory"] != nil) - [historyContainer setObject:[[contextInfo objectForKey:@"queryHistory"] mutableCopy] forKey:[fileURL absoluteString]]; - else - [historyContainer setObject:[NSMutableArray array] forKey:[fileURL absoluteString]]; - } - NSLog(@"shared %@ %@", historyContainer, favoritesContainer); + // if(![favoritesContainer objectForKey:[fileURL absoluteString]]) { + // if(contextInfo != nil && [contextInfo objectForKey:@"queryFavorites"] != nil) + // [favoritesContainer setObject:[[contextInfo objectForKey:@"queryFavorites"] mutableCopy] forKey:[fileURL absoluteString]]; + // else + // [favoritesContainer setObject:[NSMutableArray array] forKey:[fileURL absoluteString]]; + // } + // if(![historyContainer objectForKey:[fileURL absoluteString]]) { + // if(contextInfo != nil && [contextInfo objectForKey:@"queryHistory"] != nil) + // [historyContainer setObject:[[contextInfo objectForKey:@"queryHistory"] mutableCopy] forKey:[fileURL absoluteString]]; + // else + // [historyContainer setObject:[NSMutableArray array] forKey:[fileURL absoluteString]]; + // } + return fileURL; } |