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 | |
parent | da543c69817c24ab3e3885057b376c93a8acf051 (diff) | |
download | sequelpro-02f1dc76e83c25120395cf59c79712fa41292507.tar.gz sequelpro-02f1dc76e83c25120395cf59c79712fa41292507.tar.bz2 sequelpro-02f1dc76e83c25120395cf59c79712fa41292507.zip |
Remove references to deleted image.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionController.m | 4 | ||||
-rw-r--r-- | Source/SPConstants.h | 1 |
2 files changed, 4 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]; diff --git a/Source/SPConstants.h b/Source/SPConstants.h index 3a15f71c..8e9c31b5 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -129,6 +129,7 @@ typedef enum // Sort by constants typedef enum { + SPFavoritesSortUnsorted = -1, SPFavoritesSortNameItem = 0, SPFavoritesSortHostItem = 1, SPFavoritesSortTypeItem = 2 |