aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-12-08 20:58:57 +0000
committerstuconnolly <stuart02@gmail.com>2010-12-08 20:58:57 +0000
commitcecdee329489a304d94630662a24a6d0145eaa1a (patch)
treef485cdd52c5ec294e2f430c2a8228317eb77b675 /Source/SPConnectionController.m
parent05f91b6778fecc28add3cc2218867cf9134599e7 (diff)
downloadsequelpro-cecdee329489a304d94630662a24a6d0145eaa1a.tar.gz
sequelpro-cecdee329489a304d94630662a24a6d0145eaa1a.tar.bz2
sequelpro-cecdee329489a304d94630662a24a6d0145eaa1a.zip
Update a connection favorite's name accordingly if it's type is changed.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index f7a09471..f48cdc06 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -1199,13 +1199,11 @@ static const NSString *SPExportFavoritesFilename = @"SequelProFavorites.plist";
* Updates the favorite's host when the type changes.
*/
- (void)_favoriteTypeDidChange
-{
- // TODO: Handle changing favorite connection types
-
- /*NSDictionary *favorite = [[[self selectedFavoriteNode] representedObject] nodeFavorite];
+{
+ NSDictionary *favorite = [[[self selectedFavoriteNode] representedObject] nodeFavorite];
// If either socket or host is localhost, clear.
- if ((selectedTabView != SPSocketConnection) && [[favorite objectForKey:SPFavoriteHostKey] isEqualToString:@"localhost"]) {
+ if ((previousType != SPSocketConnection) && [[favorite objectForKey:SPFavoriteHostKey] isEqualToString:@"localhost"]) {
[self setHost:@""];
}
@@ -1217,9 +1215,6 @@ static const NSString *SPExportFavoritesFilename = @"SequelProFavorites.plist";
(([favorite objectForKey:SPFavoriteHostKey]) ? [favorite valueForKeyPath:SPFavoriteHostKey] : @""))
]];
}
-
- // Request a password refresh to keep keychain references in synch with the favorites
- [self _updateFavoritePasswordsFromField:nil];*/
}
/**