diff options
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 5eea9f6f..011cdc09 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -3408,9 +3408,15 @@ - (void)processFieldEditorResult:(id)data contextInfo:(NSDictionary*)contextInfo { + NSInteger row = -1; + NSInteger column = -1; + + if(contextInfo) { + row = [[contextInfo objectForKey:@"row"] integerValue]; + column = [[contextInfo objectForKey:@"column"] integerValue]; + } + if (data && contextInfo) { - NSUInteger row = [[contextInfo objectForKey:@"row"] integerValue]; - NSUInteger column = [[contextInfo objectForKey:@"column"] integerValue]; BOOL isFieldEditable = ([contextInfo objectForKey:@"isFieldEditable"]) ? YES : NO; if(isFieldEditable) { @@ -3428,6 +3434,9 @@ if (selectionIndexToRestore) [customQueryView selectRowIndexes:selectionIndexToRestore byExtendingSelection:NO]; + if(row > -1 && column > -1) + [customQueryView editColumn:column row:row withEvent:nil select:YES]; + } #pragma mark - |