diff options
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r-- | Source/SPTableView.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index 38cd949e..801a528b 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -23,6 +23,7 @@ // More info at <http://code.google.com/p/sequel-pro/> #import "SPTableView.h" +#import "SPQueryFavoriteManager.h" #import "SPArrayAdditions.h" @implementation SPTableView @@ -46,6 +47,10 @@ if([NSArrayObjectAtIndex([[self delegate] valueForKeyPath:@"tableTypes"], row) intValue] == -1) return nil; } + if([[[[self delegate] class] description] isEqualToString:@"SPQueryFavoriteManager"]) { + if([NSArrayObjectAtIndex([[self delegate] valueForKeyPath:@"favoriteProperties"], row) intValue] == SP_FAVORITETYPE_HEADER) + return nil; + } [self selectRow:row byExtendingSelection:NO]; [[self window] makeFirstResponder:self]; |