diff options
author | stuconnolly <stuart02@gmail.com> | 2009-10-29 00:05:51 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-10-29 00:05:51 +0000 |
commit | e16c728dd900cfe39369e0afe8c85f58e4aecdf7 (patch) | |
tree | 82161f9fc6e7eefe78877b6da5f27d3dde5bad89 /Source/SPConnectionController.m | |
parent | 30a49adb59f7770c9fc7739c145389447da8bc39 (diff) | |
download | sequelpro-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.m | 2 |
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]; |