diff options
author | rowanbeentje <rowan@beent.je> | 2008-11-15 02:24:28 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2008-11-15 02:24:28 +0000 |
commit | 3a01614df41b55bf8f484646c1f7550610741ef1 (patch) | |
tree | ea1d85cfb84d6de7542f2a8cb5f1686cff48af55 | |
parent | d99442d0b99b997465ecc4156717569b00548f2a (diff) | |
download | sequelpro-3a01614df41b55bf8f484646c1f7550610741ef1.tar.gz sequelpro-3a01614df41b55bf8f484646c1f7550610741ef1.tar.bz2 sequelpro-3a01614df41b55bf8f484646c1f7550610741ef1.zip |
Select the new favorites row as a new favorite is connected, instead of reselecting the currently selected row and its details (Issue #83)
-rw-r--r-- | TableDocument.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TableDocument.m b/TableDocument.m index 408aa2f6..a7f33ea8 100644 --- a/TableDocument.m +++ b/TableDocument.m @@ -357,8 +357,9 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa // select new favorite selectedFavorite = [favoriteName retain]; - + [self didChangeValueForKey:@"favorites"]; + [favoritesController setSelectionIndex:[favorites count]-1]; } /** |