aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-05-20 13:02:39 +0000
committerrowanbeentje <rowan@beent.je>2012-05-20 13:02:39 +0000
commitb225cf4913e4fe20dfe57922fcbb8caa78878115 (patch)
tree7e7076bcae22e3dc1fd2880791f2b1566281f939 /Source/SPConnectionController.m
parent1975d6df453a7b82346571ac8d45613c1bffce15 (diff)
downloadsequelpro-b225cf4913e4fe20dfe57922fcbb8caa78878115.tar.gz
sequelpro-b225cf4913e4fe20dfe57922fcbb8caa78878115.tar.bz2
sequelpro-b225cf4913e4fe20dfe57922fcbb8caa78878115.zip
Improvements to connection view outline view:
- Prevent groups from being dragged into themselves (or child nodes) to prevent data loss - Improve selection handling when manually reordering nodes - Don't allow drags of the "Favorites" title at the top of the view to prevent exceptions - Prevent the "Favorites" title from being collapsed to prevent confusion on 10.7+ - Improve group tooltips to reflect contained favourites and groups - Improve menu validation checks
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 7eb15dd6..93b7dc36 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -1329,6 +1329,9 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
[favoritesController removeFavoriteNode:node];
[self _reloadFavoritesViewData];
+
+ // Clear the selection
+ [favoritesOutlineView selectRowIndexes:nil byExtendingSelection:NO];
[connectionResizeContainer setHidden:NO];
[connectionInstructionsTextField setStringValue:NSLocalizedString(@"Enter connection details below, or choose a favorite", @"enter connection details label")];