diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-13 20:32:43 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-13 20:32:43 +0000 |
commit | 0661135713d5c9b3a4e3e39e184ac3eb35926ac4 (patch) | |
tree | 9963c06f8429c7035c059fc8e5a63ef2888026d9 /Source/SPCustomQuery.m | |
parent | ce7c466d1da266b51411a57a03540256e3048249 (diff) | |
download | sequelpro-0661135713d5c9b3a4e3e39e184ac3eb35926ac4.tar.gz sequelpro-0661135713d5c9b3a4e3e39e184ac3eb35926ac4.tar.bz2 sequelpro-0661135713d5c9b3a4e3e39e184ac3eb35926ac4.zip |
• fix editing validation and doCommandBySelector: stuff for SPCustomQuery class to allow eg entering favorite names, typing search pattern for favs and history etc.
- this fixes 813
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index a8e3fcd9..961ae6e9 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -3458,6 +3458,8 @@ - (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor { + if(![control isKindOfClass:[SPCopyTable class]]) return YES; + NSUInteger row, column; NSDictionary *columnDefinition = nil; BOOL shouldBeginEditing = NO; @@ -3564,7 +3566,7 @@ } } - else { + else if([control isKindOfClass:[SPCopyTable class]]) { // Check firstly if SPCopyTable can handle command if([customQueryView control:control textView:textView doCommandBySelector:(SEL)command]) |