diff options
author | rowanbeentje <rowan@beent.je> | 2011-01-10 01:11:12 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-01-10 01:11:12 +0000 |
commit | a23577422a8b3e5dade189ce25ab7d8c541c7ca9 (patch) | |
tree | f0d649a7eedc0b341a1b4430b4197283803a8375 /Source/SPQueryFavoriteManager.m | |
parent | 94582a2bb020e074ee87092a7ea3902fe83c5bfe (diff) | |
download | sequelpro-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.m | 1 |
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; } |