qt: dont use .Handle <> 0 comparison use HandleAllocated instead

git-svn-id: trunk@13778 -
This commit is contained in:
paul 2008-01-16 12:15:49 +00:00
parent 1e077039d5
commit 015034e457

View File

@ -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;