aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-05 15:28:26 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-05 15:28:26 +0000
commitbb425dd261f7dd5accb3882f7dfdbf1eac298d7e (patch)
tree726ee38094bf4022acd682b9ea63358dbfb6bd1c /Source/SPConnectionControllerDelegate.m
parent57f129d6d503dc68aecc0ed458771d91f062290b (diff)
downloadsequelpro-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/SPConnectionControllerDelegate.m')
-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;
}
}