Reset stored window pointer in wxWindow dtor
This protects against orphan Qt events and signals.
This commit is contained in:
@@ -309,6 +309,9 @@ wxWindowQt::~wxWindowQt()
|
|||||||
|
|
||||||
DestroyChildren(); // This also destroys scrollbars
|
DestroyChildren(); // This also destroys scrollbars
|
||||||
|
|
||||||
|
if (m_qtWindow)
|
||||||
|
QtStoreWindowPointer( GetHandle(), NULL );
|
||||||
|
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DRAG_AND_DROP
|
||||||
SetDropTarget(NULL);
|
SetDropTarget(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user