summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/listbox.cpp')
-rw-r--r--src/gui/widgets/listbox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp
index b89fc9688..7be2c15c3 100644
--- a/src/gui/widgets/listbox.cpp
+++ b/src/gui/widgets/listbox.cpp
@@ -64,6 +64,9 @@ ListBox::ListBox(const Widget2 *const widget,
ListBox::~ListBox()
{
+ if (gui)
+ gui->removeDragged(this);
+
if (Theme::instance())
Theme::instance()->unload(mSkin);
}