aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-03-22 00:48:30 +0000
committerrowanbeentje <rowan@beent.je>2011-03-22 00:48:30 +0000
commitf93628daffb454b81cdc5de7e9780f3e6b4c79a7 (patch)
tree7c5f1af392405454029b3a26eaa950fc28224dca
parentbbbed0dc478ab123100e9a6cdc17211c67afdc71 (diff)
downloadsequelpro-f93628daffb454b81cdc5de7e9780f3e6b4c79a7.tar.gz
sequelpro-f93628daffb454b81cdc5de7e9780f3e6b4c79a7.tar.bz2
sequelpro-f93628daffb454b81cdc5de7e9780f3e6b4c79a7.zip
- Fix selection after adding a new favourite, particularly to an empty favourites list
-rw-r--r--Source/SPConnectionController.m2
1 files changed, 1 insertions, 1 deletions
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