mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 17:19:19 +02:00
qt: dont use .Handle <> 0 comparison use HandleAllocated instead
git-svn-id: trunk@13778 -
This commit is contained in:
parent
1e077039d5
commit
015034e457
@ -164,7 +164,7 @@ end;
|
|||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
class procedure TQtWSCommonDialog.DestroyHandle(const ACommonDialog: TCommonDialog);
|
class procedure TQtWSCommonDialog.DestroyHandle(const ACommonDialog: TCommonDialog);
|
||||||
begin
|
begin
|
||||||
if ACommonDialog.Handle <> 0 then
|
if ACommonDialog.HandleAllocated then
|
||||||
TQtDialog(ACommonDialog.Handle).Release;
|
TQtDialog(ACommonDialog.Handle).Release;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user