From 0912522da735e423d5d99390ca30e358f18993b8 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 22 Mar 2011 00:11:30 +0000 Subject: - Fix exception on startup if no favourites present - I think the previous first-item preservation dates back to when the title had to be included in the favorites array, so removed - Fix favorites sorting and preservation of unsorted status --- Source/SPFavoritesPreferencePane.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/SPFavoritesPreferencePane.m') diff --git a/Source/SPFavoritesPreferencePane.m b/Source/SPFavoritesPreferencePane.m index 47c0d690..5cc01682 100644 --- a/Source/SPFavoritesPreferencePane.m +++ b/Source/SPFavoritesPreferencePane.m @@ -87,7 +87,7 @@ [favoritesTabView setTabViewType:NSNoTabsNoBorder]; // Sort favorites if a sort type has been selected - if ((NSInteger)currentSortItem > -1) [self _sortFavorites]; + if (currentSortItem != SPFavoritesSortUnsorted) [self _sortFavorites]; } #pragma mark - @@ -783,6 +783,8 @@ case SPFavoritesSortTypeItem: sortKey = SPFavoriteTypeKey; break; + default: + return; } NSSortDescriptor *sortDescriptor = nil; -- cgit v1.2.3