diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-26 12:29:01 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-26 12:29:01 +0000 |
commit | 02f1dc76e83c25120395cf59c79712fa41292507 (patch) | |
tree | fd704e3589a78b5c6ea5a78bfcc0a3468d8a45e8 /Source/SPConnectionController.m | |
parent | da543c69817c24ab3e3885057b376c93a8acf051 (diff) | |
download | sequelpro-02f1dc76e83c25120395cf59c79712fa41292507.tar.gz sequelpro-02f1dc76e83c25120395cf59c79712fa41292507.tar.bz2 sequelpro-02f1dc76e83c25120395cf59c79712fa41292507.zip |
Remove references to deleted image.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 0a75c4d2..a06637e5 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -521,7 +521,7 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v // Perform sorting [self _sortFavorites]; - if ((NSInteger)previousSortItem > -1) [[[sender menu] itemAtIndex:previousSortItem] setState:NSOffState]; + if (previousSortItem > SPFavoritesSortUnsorted) [[[sender menu] itemAtIndex:previousSortItem] setState:NSOffState]; [[[sender menu] itemAtIndex:currentSortItem] setState:NSOnState]; } @@ -1184,6 +1184,8 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v case SPFavoritesSortTypeItem: sortKey = SPFavoriteTypeKey; break; + case SPFavoritesSortUnsorted: + break; } [self _sortTreeNode:[[favoritesRoot childNodes] objectAtIndex:0] usingKey:sortKey]; |