From bb425dd261f7dd5accb3882f7dfdbf1eac298d7e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 5 Mar 2011 15:28:26 +0000 Subject: Only update a favourite's name if it was the name field that was actually changed. --- Source/SPConnectionControllerDelegate.m | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Source') 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:@""]; @@ -289,12 +291,8 @@ if (nameFieldIsEmpty) favoriteNameFieldWasTouched = NO; } - break; - default: break; } - - if ((field == standardNameField) || (field == socketNameField) || (field == sshNameField)) favoriteNameFieldWasTouched = YES; } } -- cgit v1.2.3