Be sure drop target is disconnected before destructing window.

This commit is contained in:
Jay Nabonne
2019-01-29 17:07:14 +00:00
parent 87f6707123
commit e995618a3a

View File

@@ -259,6 +259,10 @@ wxWindowQt::~wxWindowQt()
delete m_qtShortcuts;
#endif
#if wxUSE_DRAG_AND_DROP
SetDropTarget(NULL);
#endif
// Delete only if the qt widget was created or assigned to this base class
if (m_qtWindow)
{