diff options
author | stuconnolly <stuart02@gmail.com> | 2013-01-22 17:14:03 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-01-22 17:14:03 +0000 |
commit | 9ab31cc5b60bf0e4519c989a3e9d213da50f888d (patch) | |
tree | 5e2967e092096dd830351a222cfe65d008d41fbd /Source/SPConnectionControllerInitializer.m | |
parent | e2cc9e1953a142f182714fb02d7eca028398e368 (diff) | |
download | sequelpro-9ab31cc5b60bf0e4519c989a3e9d213da50f888d.tar.gz sequelpro-9ab31cc5b60bf0e4519c989a3e9d213da50f888d.tar.bz2 sequelpro-9ab31cc5b60bf0e4519c989a3e9d213da50f888d.zip |
Remove useless init and dealloc method comments and perform general tidy up.
Diffstat (limited to 'Source/SPConnectionControllerInitializer.m')
-rw-r--r-- | Source/SPConnectionControllerInitializer.m | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerInitializer.m b/Source/SPConnectionControllerInitializer.m index 2f4d725e..688b2016 100644 --- a/Source/SPConnectionControllerInitializer.m +++ b/Source/SPConnectionControllerInitializer.m @@ -307,7 +307,8 @@ static NSString *SPConnectionViewNibName = @"ConnectionView"; if (favorite == quickConnectItem) { [self _selectNode:favorite]; - } else { + } + else { NSNumber *typeNumber = [[[favorite representedObject] nodeFavorite] objectForKey:SPFavoriteTypeKey]; previousType = typeNumber ? [typeNumber integerValue] : SPTCPIPConnection; @@ -344,11 +345,16 @@ static NSString *SPConnectionViewNibName = @"ConnectionView"; [self _reloadFavoritesViewData]; NSMutableIndexSet *selectionIndexes = [NSMutableIndexSet indexSet]; - for (SPTreeNode *eachNode in selectedFavoriteNodes) { + + for (SPTreeNode *eachNode in selectedFavoriteNodes) + { NSInteger anIndex = [favoritesOutlineView rowForItem:eachNode]; + if (anIndex == -1) continue; + [selectionIndexes addIndex:anIndex]; } + [favoritesOutlineView selectRowIndexes:selectionIndexes byExtendingSelection:NO]; #endif } |