mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 12:38:30 +01:00
LCL: Prevent a crash when freeing a DBEdit with focus. Issue #27178, patch from Petr-K.
git-svn-id: trunk@62288 -
This commit is contained in:
parent
aef6a43ae0
commit
7b46b7ced2
@ -222,9 +222,8 @@ end;
|
||||
procedure TDBEdit.WMKillFocus(var Message: TLMKillFocus);
|
||||
begin
|
||||
inherited WMKillFocus(Message);
|
||||
|
||||
FFocusedDisplay := False;
|
||||
|
||||
if csDestroying in ComponentState then Exit;
|
||||
if FDatalink.Editing then
|
||||
begin
|
||||
FDatalink.UpdateRecord;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user