summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 5cffb8d72..daec2e7fa 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -166,6 +166,9 @@ DropDown::DropDown(const Widget2 *const widget,
DropDown::~DropDown()
{
+ if (gui)
+ gui->removeDragged(this);
+
instances--;
if (instances == 0)
{