aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferenceController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-09-26 20:26:39 +0000
committerrowanbeentje <rowan@beent.je>2010-09-26 20:26:39 +0000
commit2281746fdc1f1a2ff93fc28fc0182614445d5938 (patch)
tree0c141ec521a84d0b436a4ee431c085c9216d8f0a /Source/SPPreferenceController.m
parent15a9a678170c20671e86c5fa18393e1c5bddaff4 (diff)
downloadsequelpro-2281746fdc1f1a2ff93fc28fc0182614445d5938.tar.gz
sequelpro-2281746fdc1f1a2ff93fc28fc0182614445d5938.tar.bz2
sequelpro-2281746fdc1f1a2ff93fc28fc0182614445d5938.zip
Tweak favourites sorting from r2696, fixing exceptions when no sort type is selected
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r--Source/SPPreferenceController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index 4441c75d..932bed9c 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -109,8 +109,8 @@
[prefs synchronize];
- // Sort favorites
- [self _sortFavorites];
+ // Sort favorites if a sort type has been selected
+ if (currentSortItem > -1) [self _sortFavorites];
NSTableColumn *column;
SPColorWellCell *colorCell;