diff options
author | rowanbeentje <rowan@beent.je> | 2014-06-16 02:28:25 +0100 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2014-06-16 02:28:25 +0100 |
commit | 690c2fa83a5a3138bf4aa0fa862565c833b72d2a (patch) | |
tree | 799539bb55df6b2c4ff65709fd1add69fcc074ce /Source/SPCustomQuery.m | |
parent | ae239070319b0a8cacc8b17cdcb245ce29956759 (diff) | |
download | sequelpro-690c2fa83a5a3138bf4aa0fa862565c833b72d2a.tar.gz sequelpro-690c2fa83a5a3138bf4aa0fa862565c833b72d2a.tar.bz2 sequelpro-690c2fa83a5a3138bf4aa0fa862565c833b72d2a.zip |
Add a safety check within [SPCopyTable shouldUseFieldEditorForRow:column:] for use when loading tables, which may improve Issue #1925 and Issue #1902.
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 8a2031f1..083de5c3 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -2121,7 +2121,7 @@ // If the current cell should have been edited in a sheet, do nothing - field closing will have already // updated the field. - if ([customQueryView shouldUseFieldEditorForRow:rowIndex column:[[aTableColumn identifier] integerValue]]) { + if ([customQueryView shouldUseFieldEditorForRow:rowIndex column:[[aTableColumn identifier] integerValue] checkWithLock:NULL]) { return; } @@ -2449,7 +2449,7 @@ || [[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"blobdata"]); // Open the editing sheet if required - if ([customQueryView shouldUseFieldEditorForRow:rowIndex column:[[aTableColumn identifier] integerValue]]) + if ([customQueryView shouldUseFieldEditorForRow:rowIndex column:[[aTableColumn identifier] integerValue] checkWithLock:NULL]) { if (fieldEditor) [fieldEditor release], fieldEditor = nil; fieldEditor = [[SPFieldEditorController alloc] init]; @@ -3851,7 +3851,7 @@ isFieldEditable = shouldBeginEditing; // Open the field editor sheet if required - if ([customQueryView shouldUseFieldEditorForRow:row column:column]) + if ([customQueryView shouldUseFieldEditorForRow:row column:column checkWithLock:NULL]) { [customQueryView setFieldEditorSelectedRange:[aFieldEditor selectedRange]]; |