Qt5: check for dangling handle.

git-svn-id: trunk@54114 -
This commit is contained in:
zeljko 2017-02-07 17:11:38 +00:00
parent f439ee0b2f
commit 8bf0337321

View File

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