diff options
author | stuconnolly <stuart02@gmail.com> | 2010-04-20 12:04:53 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-04-20 12:04:53 +0000 |
commit | 6af633648d5d145393e39af9a62d3582d5fa543f (patch) | |
tree | 6eefb8ba9bcfb5f9a9954017ac531429998cf001 /Source/SPConnectionController.m | |
parent | 1f68bab9230b644ed335d37121576fbdfee83ba7 (diff) | |
download | sequelpro-6af633648d5d145393e39af9a62d3582d5fa543f.tar.gz sequelpro-6af633648d5d145393e39af9a62d3582d5fa543f.tar.bz2 sequelpro-6af633648d5d145393e39af9a62d3582d5fa543f.zip |
Fix an issue whereby choosing to edit the selected favourite in the connection view would select the wrong favourite in the preferences because sorting has been applied to the table view.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index ecfd6bc4..9d646278 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -521,7 +521,8 @@ [prefsController showWindow:self]; [prefsController displayFavoritePreferences:self]; - if ([favoritesTable numberOfSelectedRows]) [prefsController selectFavoriteAtIndex:([favoritesTable selectedRow] - 1)]; + + if ([favoritesTable numberOfSelectedRows]) [prefsController selectFavorites:[NSArray arrayWithObject:[self valueForKeyPath:@"selectedFavorite"]]]; } /** |