mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-25 13:49:16 +02:00
LCL, fix AV on editing dbedit and dataset is closed, issue #15036
git-svn-id: trunk@23497 -
This commit is contained in:
parent
cbd597f590
commit
1aa70b74a9
@ -163,7 +163,7 @@ end;
|
||||
procedure TDBEdit.KeyPress(var Key: char);
|
||||
function CanAcceptKey: boolean;
|
||||
begin
|
||||
Result := Field.IsValidChar(Key) and
|
||||
Result := (Field<>nil) and Field.IsValidChar(Key) and
|
||||
(Field.DataType<>ftAutoInc);
|
||||
end;
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user