ValEdit: fix not removing ReadOnly of editor when in column[0], introduced in (my own) r40417 #e06657740f.

git-svn-id: trunk@40424 -
This commit is contained in:
bart 2013-02-26 22:07:36 +00:00
parent 53a3d93a5a
commit f9e3ecf385

View File

@ -1041,8 +1041,13 @@ begin
else SetGridEditorReadOnly(result, False);
end
else
begin
//First column is only editable if KeyEdit is in KeyOptions
if not (KeyEdit in KeyOptions) then Result := nil;
if not (KeyEdit in KeyOptions) then
Result := nil
else
SetGridEditorReadOnly(result, False);
end;
end;
function TValueListEditor.GetRowCount: Integer;