From 0661135713d5c9b3a4e3e39e184ac3eb35926ac4 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 13 Sep 2010 20:32:43 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fix=20editing=20validation=20and=20doComman?= =?UTF-8?q?dBySelector:=20stuff=20for=20SPCustomQuery=20class=20to=20allow?= =?UTF-8?q?=20eg=20entering=20favorite=20names,=20typing=20search=20patter?= =?UTF-8?q?n=20for=20favs=20and=20history=20etc.=20-=20this=20fixes=20813?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCustomQuery.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/SPCustomQuery.m') 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]) -- cgit v1.2.3