aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-04-10 00:17:05 +0000
committerstuconnolly <stuart02@gmail.com>2009-04-10 00:17:05 +0000
commit68b9bbc92bfdcb027db31e775cf67b3c573d473b (patch)
tree8bbca3c1735ac6285bfafac92de1812d0367b9e4
parent5b6f8231ebfeea5d24fa6163325c0215d3829e7c (diff)
downloadsequelpro-68b9bbc92bfdcb027db31e775cf67b3c573d473b.tar.gz
sequelpro-68b9bbc92bfdcb027db31e775cf67b3c573d473b.tar.bz2
sequelpro-68b9bbc92bfdcb027db31e775cf67b3c573d473b.zip
That shouln't be there. Copy/paste error.
-rw-r--r--Source/TableDocument.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 1f6f16bb..f6e419c5 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1848,10 +1848,9 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocum
[keyChainInstance deletePasswordForName:[NSString stringWithFormat:@"Sequel Pro : %@", favoriteNamebBeingChanged]
account:[NSString stringWithFormat:@"%@@%@/%@", [favorite objectForKey:@"user"], [favorite objectForKey:@"host"], [favorite objectForKey:@"database"]]];
- if ( ![[passwordField stringValue] isEqualToString:@""] )
- [keyChainInstance addPassword:[passwordField stringValue]
- forName:[NSString stringWithFormat:@"Sequel Pro : %@", object]
- account:[NSString stringWithFormat:@"%@@%@/%@", [favorite objectForKey:@"user"], [favorite objectForKey:@"host"], [favorite objectForKey:@"database"]]];
+ [keyChainInstance addPassword:[passwordField stringValue]
+ forName:[NSString stringWithFormat:@"Sequel Pro : %@", object]
+ account:[NSString stringWithFormat:@"%@@%@/%@", [favorite objectForKey:@"user"], [favorite objectForKey:@"host"], [favorite objectForKey:@"database"]]];
favoriteNamebBeingChanged = nil;
}