diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-01 16:07:46 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-01 16:07:46 +0000 |
commit | c193919cacda828749f7a25cded79bf0ab870190 (patch) | |
tree | 73842b7e69420ba130c4ad00fec9ac84aea6cf52 /Source/SPTableView.m | |
parent | d4c06608e4154e30a9934d1393100c7c84727c64 (diff) | |
download | sequelpro-c193919cacda828749f7a25cded79bf0ab870190.tar.gz sequelpro-c193919cacda828749f7a25cded79bf0ab870190.tar.bz2 sequelpro-c193919cacda828749f7a25cded79bf0ab870190.zip |
• fixes for Query Favorite Manager:
- renamed "Save" button to "Apply Changes" to make it clear what will be done by clicking at it
- suppress context menu and selection while right-clicking at a header
- while in cell editing ESC will abort the editing (not close the sheet)
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]; |