aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-25 09:53:15 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-25 09:53:15 +0000
commit86f08139a21a39b9d6077a34bf6a819833ca860c (patch)
tree279e20cd7c13da0312af519835bae4bfbe1c0201 /Source/SPCustomQuery.m
parentd90aac6dfab328485bad6ec450388d90684a0ee6 (diff)
downloadsequelpro-86f08139a21a39b9d6077a34bf6a819833ca860c.tar.gz
sequelpro-86f08139a21a39b9d6077a34bf6a819833ca860c.tar.bz2
sequelpro-86f08139a21a39b9d6077a34bf6a819833ca860c.zip
• fixed several issues for in cell editing of Custom Query tables and view data in Content tables
- now each cell can be selected via keyboard navigation regardless whether it's editable or not; only if the user tries to modify it then it will be checked if it's editable or not - for speed while navigation - fixed issue for view data editing to show blobs in editor sheet if user wants to modify it - Note: still work on progress
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m6
1 files changed, 5 insertions, 1 deletions
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