From f93628daffb454b81cdc5de7e9780f3e6b4c79a7 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 22 Mar 2011 00:48:30 +0000 Subject: - Fix selection after adding a new favourite, particularly to an empty favourites list --- Source/SPConnectionController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index a6cbadd7..e557b655 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -1089,7 +1089,7 @@ // Update the favorites list and selection [self updateFavorites]; - [favoritesTable selectRowIndexes:[NSIndexSet indexSetWithIndex:[favorites count]-1] byExtendingSelection:NO]; + [favoritesTable selectRowIndexes:[NSIndexSet indexSetWithIndex:[favorites count]] byExtendingSelection:NO]; [favoritesTable scrollRowToVisible:[favoritesTable selectedRow]]; // Update the favorites popup button in the preferences -- cgit v1.2.3