Be sure drop target is disconnected before destructing window.
This commit is contained in:
@@ -259,6 +259,10 @@ wxWindowQt::~wxWindowQt()
|
|||||||
delete m_qtShortcuts;
|
delete m_qtShortcuts;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_DRAG_AND_DROP
|
||||||
|
SetDropTarget(NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Delete only if the qt widget was created or assigned to this base class
|
// Delete only if the qt widget was created or assigned to this base class
|
||||||
if (m_qtWindow)
|
if (m_qtWindow)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user