aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2008-11-15 15:54:33 +0000
committerrowanbeentje <rowan@beent.je>2008-11-15 15:54:33 +0000
commit41355f1754197328c4623883a980cf708dc35097 (patch)
treefeeda7acc380c32b6a8ab017acf061bfe8ffe3c5
parent5949920d5515fbbc1fc59f4ff2ee8c68ca7f6e18 (diff)
downloadsequelpro-41355f1754197328c4623883a980cf708dc35097.tar.gz
sequelpro-41355f1754197328c4623883a980cf708dc35097.tar.bz2
sequelpro-41355f1754197328c4623883a980cf708dc35097.zip
Improvement to new favourite selection over r182 - now selects the new favourite whatever the table sort order.
-rw-r--r--TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/TableDocument.m b/TableDocument.m
index e54d0c9a..968a9480 100644
--- a/TableDocument.m
+++ b/TableDocument.m
@@ -360,7 +360,7 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa
selectedFavorite = [favoriteName retain];
[self didChangeValueForKey:@"favorites"];
- [favoritesController setSelectionIndex:[favorites count]-1];
+ [favoritesController setSelectedObjects:[NSArray arrayWithObject:newFavorite]];
}
/**