mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 23:09:45 +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);
|
procedure TDBEdit.KeyPress(var Key: char);
|
||||||
function CanAcceptKey: boolean;
|
function CanAcceptKey: boolean;
|
||||||
begin
|
begin
|
||||||
Result := Field.IsValidChar(Key) and
|
Result := (Field<>nil) and Field.IsValidChar(Key) and
|
||||||
(Field.DataType<>ftAutoInc);
|
(Field.DataType<>ftAutoInc);
|
||||||
end;
|
end;
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user