mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 20:56:14 +02:00
Qt: secure QObject from accidental destroy if we have pending events.
git-svn-id: trunk@18290 -
This commit is contained in:
parent
ca49a4c70f
commit
e8969ac8d4
@ -741,8 +741,12 @@ end;
|
||||
procedure TQtObject.Release;
|
||||
begin
|
||||
if InEvent then
|
||||
FReleaseInEvent := True
|
||||
else
|
||||
begin
|
||||
{$IFDEF USE_QT_44}
|
||||
FDeleteLater := True;
|
||||
{$ENDIF}
|
||||
FReleaseInEvent := True;
|
||||
end else
|
||||
Free;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user