From 86f08139a21a39b9d6077a34bf6a819833ca860c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 25 Aug 2010 09:53:15 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20several=20issues=20for=20in=20cell?= =?UTF-8?q?=20editing=20of=20Custom=20Query=20tables=20and=20view=20data?= =?UTF-8?q?=20in=20Content=20tables=20-=20now=20each=20cell=20can=20be=20s?= =?UTF-8?q?elected=20via=20keyboard=20navigation=20regardless=20whether=20?= =?UTF-8?q?it's=20editable=20or=20not;=20only=20if=20the=20user=20tries=20?= =?UTF-8?q?to=20modify=20it=20then=20it=20will=20be=20checked=20if=20it's?= =?UTF-8?q?=20editable=20or=20not=20-=20for=20speed=20while=20navigation?= =?UTF-8?q?=20-=20fixed=20issue=20for=20view=20data=20editing=20to=20show?= =?UTF-8?q?=20blobs=20in=20editor=20sheet=20if=20user=20wants=20to=20modif?= =?UTF-8?q?y=20it=20-=20Note:=20still=20work=20on=20progress?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCustomQuery.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/SPCustomQuery.m') diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 4edaa40a..c9e1f4c5 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -3454,12 +3454,16 @@ - (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor { - NSString *fieldType; NSUInteger row, column; row = [customQueryView editedRow]; column = [customQueryView editedColumn]; + if([self fieldEditStatusForRow:row andColumn:[NSArrayObjectAtIndex([customQueryView tableColumns], column) identifier]] != 1) + return NO; + + NSString *fieldType; + NSDictionary *columnDefinition = nil; // Retrieve the column defintion -- cgit v1.2.3