mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 19:59:31 +02:00
LCL, fix picklist editor not saving data into dbgrid, regression introduced in r27317 #90bf8f4f5e, issue #17586
git-svn-id: trunk@27636 -
This commit is contained in:
parent
d38da8c53c
commit
f1a7c8604e
@ -2294,7 +2294,8 @@ end;
|
||||
|
||||
procedure TCustomDBGrid.SetEditText(ACol, ARow: Longint; const Value: string);
|
||||
begin
|
||||
FTempText := Value;
|
||||
if not EditorIsReadOnly then
|
||||
FTempText := Value;
|
||||
end;
|
||||
|
||||
procedure TCustomDBGrid.SetFixedCols(const AValue: Integer);
|
||||
@ -2789,7 +2790,7 @@ begin
|
||||
AField := GetFieldFromGridColumn(Col);
|
||||
if assigned(AField) then
|
||||
Result := not AField.CanModify;
|
||||
if not result then begin
|
||||
if not result and not FDatalink.Editing then begin
|
||||
Include(FGridStatus, gsStartEditing);
|
||||
Result := not FDataLink.Edit;
|
||||
Exclude(FGridStatus, gsStartEditing);
|
||||
|
Loading…
Reference in New Issue
Block a user