From 6af633648d5d145393e39af9a62d3582d5fa543f Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 20 Apr 2010 12:04:53 +0000 Subject: 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. --- Source/SPConnectionController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/SPConnectionController.m') 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"]]]; } /** -- cgit v1.2.3