aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]];
}
/**