aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-10-06 14:16:39 +0000
committerBibiko <bibiko@eva.mpg.de>2009-10-06 14:16:39 +0000
commit3f2838787602f50176a0ea4e15c0f69cd403920c (patch)
tree2474c3de795fef81736866ffacc5d4866f41c07a /Source/SPConnectionController.m
parent27eba105aef0a612e5a91af02a0b87b99b06ab78 (diff)
downloadsequelpro-3f2838787602f50176a0ea4e15c0f69cd403920c.tar.gz
sequelpro-3f2838787602f50176a0ea4e15c0f69cd403920c.tar.bz2
sequelpro-3f2838787602f50176a0ea4e15c0f69cd403920c.zip
• changed routine for opening SPF files
- if no passwords are stored inside the SPF file try to retrieve the passwords from the KeyChain - for that purpose store the key 'kcid' in the SPF file if available - changed the accessory view: 'auto_connect' is always enabled (even no pw will be saved due to new routine) • fixed issue for Open Recent of SQL files • add a saved SPF file to Open Recent list if the user saved an Untitled doc or saved an open SPF file under an other name
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index d4c9d665..9a9d693b 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -450,9 +450,16 @@
NSArray *toolbarItems = [[documentWindow toolbar] items];
for (int i = 0; i < [toolbarItems count]; i++) [[toolbarItems objectAtIndex:i] setEnabled:YES];
+ // Set keychain id for saving SPF files
+ if([self valueForKeyPath:@"selectedFavorite.id"])
+ [tableDocument setKeychainID:[[self valueForKeyPath:@"selectedFavorite.id"] stringValue]];
+ else
+ [tableDocument setKeychainID:@""];
+
// Pass the connection to the table document, allowing it to set
// up the other classes and the rest of the interface.
[tableDocument setConnection:mySQLConnection];
+
}
#pragma mark -