diff options
author | rowanbeentje <rowan@beent.je> | 2012-05-02 23:39:43 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-05-02 23:39:43 +0000 |
commit | 8b91b2898889f60a79525d4c123620a323156021 (patch) | |
tree | cb2c1152bd07f1b172d140079a43e32bf5f35d5c /Source/SPConnectionControllerDelegate.m | |
parent | 74843eab993bd3aac144f2d6ce5e69f76b002bd2 (diff) | |
download | sequelpro-8b91b2898889f60a79525d4c123620a323156021.tar.gz sequelpro-8b91b2898889f60a79525d4c123620a323156021.tar.bz2 sequelpro-8b91b2898889f60a79525d4c123620a323156021.zip |
- Alter the variable that currentFavorite tracks to the favourite instead of a copy of the represented node; this addresses a crash on Lion (Issue #1328)
- Clean up variables and initialisers, restore connection keychain ID tracking and setting
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r-- | Source/SPConnectionControllerDelegate.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m index 352836e3..389bd46c 100644 --- a/Source/SPConnectionControllerDelegate.m +++ b/Source/SPConnectionControllerDelegate.m @@ -216,9 +216,7 @@ static NSString *SPDatabaseImage = @"database-small"; [menuItem setState:NSOffState]; } - NSArray *nodes = draggedNodes; - - if (![nodes count]) return acceptedDrop; + if (![draggedNodes count]) return acceptedDrop; if ([node isGroup]) { if (index == NSOutlineViewDropOnItemIndex) { @@ -237,7 +235,7 @@ static NSString *SPDatabaseImage = @"database-small"; NSMutableArray *childNodeArray = [node mutableChildNodes]; - for (SPTreeNode *treeNode in nodes) + for (SPTreeNode *treeNode in draggedNodes) { // Remove the node from its old location NSInteger oldIndex = [childNodeArray indexOfObject:treeNode]; |