From b659d41228422e9ed6c5e94bed879c2b2b57a115 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 6 Jan 2013 01:36:39 +0000 Subject: - Fix problems editing the connection name when editing has just begun, addressing Issue #1518 --- Source/SPConnectionControllerDelegate.m | 4 ++-- 1 file 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]; } -- cgit v1.2.3