aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index b6499431..f5742df4 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -1609,16 +1609,14 @@
BOOL isFieldEditable = (!noTableName && numberOfPossibleUpdateRows == 1) ? YES : NO;
- // maybe??
- // if(!isFieldEditable)
- // [errorText setStringValue:[NSString stringWithFormat:@"Field is not editable. Couldn't identify field origin unambiguously (%d match%@).", numberOfPossibleUpdateRows, (numberOfPossibleUpdateRows>1)?@"es":@""]];
+ if(!isFieldEditable)
+ [errorText setStringValue:[NSString stringWithFormat:@"Field is not editable. Couldn't identify field origin unambiguously (%d match%@).", numberOfPossibleUpdateRows, (numberOfPossibleUpdateRows>1)?@"es":@""]];
- //to enable editing simply uncomment isEditable and delete 'NO' :)
SPFieldEditorController *fieldEditor = [[SPFieldEditorController alloc] init];
id editData = [[fieldEditor editWithObject:[[fullResult objectAtIndex:rowIndex] objectAtIndex:[[aTableColumn identifier] intValue]]
usingEncoding:[mySQLConnection encoding]
isObjectBlob:isBlob
- isEditable:/*isFieldEditable*/NO
+ isEditable:isFieldEditable
withWindow:tableWindow] retain];
if ( editData )