mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 12:20:15 +02:00
Qt5: check for dangling handle.
git-svn-id: trunk@54114 -
This commit is contained in:
parent
f439ee0b2f
commit
8bf0337321
@ -256,6 +256,8 @@ var
|
||||
w: TQtWidget;
|
||||
begin
|
||||
w := TQtWidget(AWinControl.Handle);
|
||||
if not QtWidgetSet.IsValidHandle(HWND(w)) then
|
||||
exit;
|
||||
{forms which have another widget as parent
|
||||
eg.form inside tabpage or mdichilds
|
||||
can segfault without hiding before release.
|
||||
|
Loading…
Reference in New Issue
Block a user