aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-01-10 01:11:12 +0000
committerrowanbeentje <rowan@beent.je>2011-01-10 01:11:12 +0000
commita23577422a8b3e5dade189ce25ab7d8c541c7ca9 (patch)
treef0d649a7eedc0b341a1b4430b4197283803a8375 /Source/SPQueryFavoriteManager.m
parent94582a2bb020e074ee87092a7ea3902fe83c5bfe (diff)
downloadsequelpro-a23577422a8b3e5dade189ce25ab7d8c541c7ca9.tar.gz
sequelpro-a23577422a8b3e5dade189ce25ab7d8c541c7ca9.tar.bz2
sequelpro-a23577422a8b3e5dade189ce25ab7d8c541c7ca9.zip
- Fix exceptions right-clicking in empty parts of the query favourites manager; fixes http://spbug.com/l/1907
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r--Source/SPQueryFavoriteManager.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m
index 609b083e..5e270a07 100644
--- a/Source/SPQueryFavoriteManager.m
+++ b/Source/SPQueryFavoriteManager.m
@@ -465,6 +465,7 @@
*/
- (BOOL)tableView:(NSTableView *)aTableView shouldSelectRow:(NSInteger)rowIndex
{
+ if (rowIndex == -1) return YES;
return ([[favorites objectAtIndex:rowIndex] objectForKey:@"headerOfFileURL"]) ? NO : YES;
}