From 04beef3900cfdb023257ebfeadb48a9949e9ea5f Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 8 Dec 2010 19:29:10 +0000 Subject: When changing the type of an already existing favorite, don't hide connection details form view. --- Source/SPConnectionControllerDelegate.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/SPConnectionControllerDelegate.m') 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")]; } -- cgit v1.2.3