diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-05 15:28:26 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-05 15:28:26 +0000 |
commit | bb425dd261f7dd5accb3882f7dfdbf1eac298d7e (patch) | |
tree | 726ee38094bf4022acd682b9ea63358dbfb6bd1c /Source | |
parent | 57f129d6d503dc68aecc0ed458771d91f062290b (diff) | |
download | sequelpro-bb425dd261f7dd5accb3882f7dfdbf1eac298d7e.tar.gz sequelpro-bb425dd261f7dd5accb3882f7dfdbf1eac298d7e.tar.bz2 sequelpro-bb425dd261f7dd5accb3882f7dfdbf1eac298d7e.zip |
Only update a favourite's name if it was the name field that was actually changed.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 8 |
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; } } |