aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPGeneralPreferencePane.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPGeneralPreferencePane.m')
-rw-r--r--Source/SPGeneralPreferencePane.m11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/SPGeneralPreferencePane.m b/Source/SPGeneralPreferencePane.m
index 4a263be4..f24dec54 100644
--- a/Source/SPGeneralPreferencePane.m
+++ b/Source/SPGeneralPreferencePane.m
@@ -95,8 +95,8 @@ static NSString *SPDatabaseImage = @"database-small";
}
}
- // Select the default favorite from prefs
- [self updateDefaultFavoritePopupSelection];
+ // Select the default favorite from prefs
+ [defaultFavoritePopup selectItemWithTag:[prefs boolForKey:SPSelectLastFavoriteUsed] ? 0 : [prefs integerForKey:SPDefaultFavorite]];
}
#pragma mark -
@@ -156,13 +156,6 @@ static NSString *SPDatabaseImage = @"database-small";
return items;
}
-- (void)updateDefaultFavoritePopupSelection
-{
- NSUInteger index = [prefs integerForKey:SPDefaultFavorite];
-
- [defaultFavoritePopup selectItemAtIndex:(![prefs boolForKey:SPSelectLastFavoriteUsed] && index > 0 && index < [[defaultFavoritePopup itemArray] count]) ? index + 2 : 0];
-}
-
#pragma mark -
#pragma mark Preference pane protocol methods