aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-12-08 19:29:10 +0000
committerstuconnolly <stuart02@gmail.com>2010-12-08 19:29:10 +0000
commit04beef3900cfdb023257ebfeadb48a9949e9ea5f (patch)
tree06fa291e20a744180c9ab4cb06d394f1c389b33d
parent61e398816badc49b301a6ae70c3697d581258cfb (diff)
downloadsequelpro-04beef3900cfdb023257ebfeadb48a9949e9ea5f.tar.gz
sequelpro-04beef3900cfdb023257ebfeadb48a9949e9ea5f.tar.bz2
sequelpro-04beef3900cfdb023257ebfeadb48a9949e9ea5f.zip
When changing the type of an already existing favorite, don't hide connection details form view.
-rw-r--r--Source/SPConnectionControllerDelegate.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 65804eff..4af4eeda 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -128,7 +128,9 @@
- (void)outlineViewSelectionDidChange:(NSNotification *)notification
{
- if ([favoritesOutlineView numberOfSelectedRows] == 1) {
+ NSInteger selected = [favoritesOutlineView numberOfSelectedRows];
+
+ if (selected == 1) {
SPTreeNode *node = [self selectedFavoriteNode];
@@ -147,7 +149,7 @@
[connectionInstructionsTextField setStringValue:NSLocalizedString(@"Please choose a favorite", @"please choose a favorite connection view label")];
}
}
- else {
+ else if (selected > 1) {
[connectionResizeContainer setHidden:YES];
[connectionInstructionsTextField setStringValue:NSLocalizedString(@"Please choose a favorite", @"please choose a favorite connection view label")];
}