mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 05:56:02 +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);
|
||||
begin
|
||||
if ACommonDialog.Handle <> 0 then
|
||||
if ACommonDialog.HandleAllocated then
|
||||
TQtDialog(ACommonDialog.Handle).Release;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user