diff options
author | stuconnolly <stuart02@gmail.com> | 2010-12-08 19:29:10 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-12-08 19:29:10 +0000 |
commit | 04beef3900cfdb023257ebfeadb48a9949e9ea5f (patch) | |
tree | 06fa291e20a744180c9ab4cb06d394f1c389b33d /Source/SPConnectionControllerDelegate.m | |
parent | 61e398816badc49b301a6ae70c3697d581258cfb (diff) | |
download | sequelpro-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.
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 6 |
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")]; } |