diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-06-24 11:41:01 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-06-24 11:41:01 +0000 |
commit | cc24661e6566d5f35e092642fe1fd435b49ad385 (patch) | |
tree | 3d6c6746dbe9c69038a8534170ba8fff73e13f8e /Source/SPQueryFavoriteManager.m | |
parent | ed0e2e03219746667d71b9cccc72c2958bdd4d12 (diff) | |
download | sequelpro-cc24661e6566d5f35e092642fe1fd435b49ad385.tar.gz sequelpro-cc24661e6566d5f35e092642fe1fd435b49ad385.tar.bz2 sequelpro-cc24661e6566d5f35e092642fe1fd435b49ad385.zip |
• replaced @"sql" and @"spf" by their SPConstant definitions
• further Save Session progress
- store "saved as session accessory view data" globally to support "Save Session"
- delete global "saved as session accessory view data" if last SP window will be closed
- added to info.plist which tab is currently selected
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r-- | Source/SPQueryFavoriteManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m index 3840bd1e..875be7ca 100644 --- a/Source/SPQueryFavoriteManager.m +++ b/Source/SPQueryFavoriteManager.m @@ -329,7 +329,7 @@ [panel beginSheetForDirectory:nil file:@"" - types:[NSArray arrayWithObjects:@"spf", @"sql", nil] + types:[NSArray arrayWithObjects:SPFileExtensionDefault, SPFileExtensionSQL, nil] modalForWindow:[self window] modalDelegate:self didEndSelector:@selector(importPanelDidEnd:returnCode:contextInfo:) @@ -748,7 +748,7 @@ NSDictionary *spf = nil; - if([[[filename pathExtension] lowercaseString] isEqualToString:@"spf"]) { + if([[[filename pathExtension] lowercaseString] isEqualToString:SPFileExtensionDefault]) { NSData *pData = [NSData dataWithContentsOfFile:filename options:NSUncachedRead error:&readError]; spf = [[NSPropertyListSerialization propertyListFromData:pData |