Qt,Qt5: fixed crash with THintWindow. issue #36773

git-svn-id: trunk@62717 -
This commit is contained in:
zeljko 2020-03-08 16:07:30 +00:00
parent 2b84e231a5
commit bb08087468
2 changed files with 4 additions and 2 deletions

View File

@ -18360,9 +18360,10 @@ begin
if AParams.WndParent <> 0 then
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
else
{issue #36773
if QApplication_activeModalWidget <> nil then
Parent := QApplication_activeModalWidget
else
else}
Parent := nil;
Result := QWidget_create(Parent, QtToolTip);
FDeleteLater := True;

View File

@ -18312,9 +18312,10 @@ begin
if AParams.WndParent <> 0 then
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
else
{issue #36773
if QApplication_activeModalWidget <> nil then
Parent := QApplication_activeModalWidget
else
else}
Parent := nil;
Result := QWidget_create(Parent, QtToolTip);
FDeleteLater := True;