diff options
author | rowanbeentje <rowan@beent.je> | 2012-10-20 16:11:51 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-10-20 16:11:51 +0000 |
commit | 62b310ab2fa911c8b9e1d8b8f71d9186e938b347 (patch) | |
tree | afb9c86f90dd61c17d5d300aa2f8b60fe241c58b /Source/SPConnectionController.m | |
parent | ef3ff14707741bef3a1968a4d7a1845b5d87d4f1 (diff) | |
download | sequelpro-62b310ab2fa911c8b9e1d8b8f71d9186e938b347.tar.gz sequelpro-62b310ab2fa911c8b9e1d8b8f71d9186e938b347.tar.bz2 sequelpro-62b310ab2fa911c8b9e1d8b8f71d9186e938b347.zip |
- Prevent new favourites from being created as a sibling/child of the Quick Connect item if it was selected
- Name a last unnamed connection thread
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index acf270f9..b9ab0510 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -739,7 +739,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, SPTreeNode *selectedNode = [self selectedFavoriteNode]; - SPTreeNode *parent = ([selectedNode isGroup]) ? selectedNode : (SPTreeNode *)[selectedNode parentNode]; + SPTreeNode *parent = ([selectedNode isGroup] && selectedNode != quickConnectItem) ? selectedNode : (SPTreeNode *)[selectedNode parentNode]; // Ensure the parent is expanded [favoritesOutlineView expandItem:parent]; @@ -1292,7 +1292,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, SPTreeNode *parentNode = nil; // If the current node is a group node, create the favorite as a child of it - if ([selectedNode isGroup]) { + if ([selectedNode isGroup] && selectedNode != quickConnectItem) { parentNode = selectedNode; // Otherwise, create the new node as a sibling of the selected node if possible |