diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 26df142c7b..1788afd646 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -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) {