From 4ddde5f4fa3f4b77c2ddf1d4848d06628d396842 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Apr 2013 02:11:25 +0300 Subject: fix random rare crashes in npc and possible other windows. --- src/gui/widgets/guitable.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/guitable.cpp') diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index ec23fda38..42f9c9350 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -116,6 +116,9 @@ GuiTable::GuiTable(const Widget2 *const widget, GuiTable::~GuiTable() { + if (gui) + gui->removeDragged(this); + uninstallActionListeners(); delete mModel; mModel = nullptr; -- cgit v1.2.3-70-g09d2