Commit 0544c2b4 authored by Andy Shaw's avatar Andy Shaw
Browse files

Unset widget window's parent when WM_DESTROY is sent to prevent a crash


When a control is activated and deactivated in Powerpoint then it will
cause the ActiveX window hosting the QWidget to be destroyed. In this
case we need to set the parent of this widget's own QWindow's HWND to
be 0 so it does not reference the deleted window.

This reflects the handling in WM_SHOWWINDOW where the parent is set for
the widget's own QWindow's HWND.

Change-Id: Ie32d408782cdf94a98cb13eda49f6ccf73cccd51
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
Showing with 6 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment