aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-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")];
}