aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPConnectionControllerDelegate.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 3aeb2da6..f055fdc6 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -239,7 +239,9 @@
{
id field = [notification object];
- if ([self selectedFavoriteNode]) {
+ if ([self selectedFavoriteNode] && ((field == standardNameField) || (field == socketNameField) || (field == sshNameField))) {
+
+ favoriteNameFieldWasTouched = YES;
BOOL nameFieldIsEmpty = [[field stringValue] isEqualToString:@""];
@@ -290,11 +292,7 @@
}
break;
- default:
- break;
}
-
- if ((field == standardNameField) || (field == socketNameField) || (field == sshNameField)) favoriteNameFieldWasTouched = YES;
}
}