Reset stored window pointer in wxWindow dtor

This protects against orphan Qt events and signals.
This commit is contained in:
dsr
2021-01-25 21:44:17 -05:00
committed by Vadim Zeitlin
parent 2cf57fda36
commit 7cd90e5b82

View File

@@ -309,6 +309,9 @@ wxWindowQt::~wxWindowQt()
DestroyChildren(); // This also destroys scrollbars
if (m_qtWindow)
QtStoreWindowPointer( GetHandle(), NULL );
#if wxUSE_DRAG_AND_DROP
SetDropTarget(NULL);
#endif