aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-29 00:05:51 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-29 00:05:51 +0000
commite16c728dd900cfe39369e0afe8c85f58e4aecdf7 (patch)
tree82161f9fc6e7eefe78877b6da5f27d3dde5bad89 /Source/SPConnectionController.m
parent30a49adb59f7770c9fc7739c145389447da8bc39 (diff)
downloadsequelpro-e16c728dd900cfe39369e0afe8c85f58e4aecdf7.tar.gz
sequelpro-e16c728dd900cfe39369e0afe8c85f58e4aecdf7.tar.bz2
sequelpro-e16c728dd900cfe39369e0afe8c85f58e4aecdf7.zip
Replace hard coded occurrences of preference key DefaultFavorite with a constant.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index d6779050..fb357f17 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -100,7 +100,7 @@
if ([prefs boolForKey:SPSelectLastFavoriteUsed] == YES) {
tableRow = [prefs integerForKey:SPLastFavoriteIndex] + 1;
} else {
- tableRow = [prefs integerForKey:@"DefaultFavorite"] + 1;
+ tableRow = [prefs integerForKey:SPDefaultFavorite] + 1;
}
if (tableRow < [favorites count]) {
previousType = [[[favorites objectAtIndex:tableRow] objectForKey:@"type"] intValue];