diff options
author | stuconnolly <stuart02@gmail.com> | 2010-11-11 16:53:24 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-11-11 16:53:24 +0000 |
commit | b1bc59225d7f190b6db36da4634cc96095f01591 (patch) | |
tree | 95cfdcc96dfbb48750d9f0afa79569591d04bea0 /Source/SPFavoritesPreferencePane.m | |
parent | b8fc79dd357d8dd1cf3177d1a7faef030497a9e0 (diff) | |
download | sequelpro-b1bc59225d7f190b6db36da4634cc96095f01591.tar.gz sequelpro-b1bc59225d7f190b6db36da4634cc96095f01591.tar.bz2 sequelpro-b1bc59225d7f190b6db36da4634cc96095f01591.zip |
Refactor the favorite node class and fix auto-selection of the default or last used favorite.
Diffstat (limited to 'Source/SPFavoritesPreferencePane.m')
-rw-r--r-- | Source/SPFavoritesPreferencePane.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPFavoritesPreferencePane.m b/Source/SPFavoritesPreferencePane.m index 07405dd3..7833d923 100644 --- a/Source/SPFavoritesPreferencePane.m +++ b/Source/SPFavoritesPreferencePane.m @@ -769,18 +769,18 @@ */ - (void)_sortFavorites { - NSString *sortKey = @""; + NSString *sortKey = SPFavoriteNameKey; switch (currentSortItem) { case SPFavoritesSortNameItem: - sortKey = @"name"; + sortKey = SPFavoriteNameKey; break; case SPFavoritesSortHostItem: - sortKey = @"host"; + sortKey = SPFavoriteHostKey; break; case SPFavoritesSortTypeItem: - sortKey = @"type"; + sortKey = SPFavoriteTypeKey; break; } |