summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index a805aa5cc..e31d4f6cd 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -70,6 +70,9 @@ TabbedArea::TabbedArea(const Widget2 *const widget) :
TabbedArea::~TabbedArea()
{
+ if (gui)
+ gui->removeDragged(this);
+
remove(mTabContainer);
remove(mWidgetContainer);