diff options
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m index e986b271..a9fb8621 100644 --- a/Source/SPConnectionControllerDelegate.m +++ b/Source/SPConnectionControllerDelegate.m @@ -451,7 +451,7 @@ static NSString *SPQuickConnectImageWhite = @"quick-connect-icon-white.pdf"; [self _startEditingConnection]; - if (favoriteNameFieldWasAutogenerated) { + if (favoriteNameFieldWasAutogenerated && (field != standardNameField && field != socketNameField && field != sshNameField)) { [self setName:[self _generateNameForConnection]]; } } @@ -478,7 +478,7 @@ static NSString *SPQuickConnectImageWhite = @"quick-connect-icon-white.pdf"; // Enable user@host update in reaction to other UI changes favoriteNameFieldWasAutogenerated = YES; - } else if (![[field stringValue] isEqualToString:[self name]]) { + } else if (![[field stringValue] isEqualToString:[self _generateNameForConnection]]) { favoriteNameFieldWasAutogenerated = NO; [self setName:favoriteName]; } |