mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 12:09:21 +02:00
Qt,Qt5: fixed crash with THintWindow. issue #36773
git-svn-id: trunk@62717 -
This commit is contained in:
parent
2b84e231a5
commit
bb08087468
@ -18360,9 +18360,10 @@ begin
|
|||||||
if AParams.WndParent <> 0 then
|
if AParams.WndParent <> 0 then
|
||||||
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
|
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
|
||||||
else
|
else
|
||||||
|
{issue #36773
|
||||||
if QApplication_activeModalWidget <> nil then
|
if QApplication_activeModalWidget <> nil then
|
||||||
Parent := QApplication_activeModalWidget
|
Parent := QApplication_activeModalWidget
|
||||||
else
|
else}
|
||||||
Parent := nil;
|
Parent := nil;
|
||||||
Result := QWidget_create(Parent, QtToolTip);
|
Result := QWidget_create(Parent, QtToolTip);
|
||||||
FDeleteLater := True;
|
FDeleteLater := True;
|
||||||
|
@ -18312,9 +18312,10 @@ begin
|
|||||||
if AParams.WndParent <> 0 then
|
if AParams.WndParent <> 0 then
|
||||||
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
|
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
|
||||||
else
|
else
|
||||||
|
{issue #36773
|
||||||
if QApplication_activeModalWidget <> nil then
|
if QApplication_activeModalWidget <> nil then
|
||||||
Parent := QApplication_activeModalWidget
|
Parent := QApplication_activeModalWidget
|
||||||
else
|
else}
|
||||||
Parent := nil;
|
Parent := nil;
|
||||||
Result := QWidget_create(Parent, QtToolTip);
|
Result := QWidget_create(Parent, QtToolTip);
|
||||||
FDeleteLater := True;
|
FDeleteLater := True;
|
||||||
|
Loading…
Reference in New Issue
Block a user