summaryrefslogtreecommitdiff
path: root/src/gui/widgets/progressindicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/progressindicator.cpp')
-rw-r--r--src/gui/widgets/progressindicator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/progressindicator.cpp b/src/gui/widgets/progressindicator.cpp
index c0667f720..6c58af2bf 100644
--- a/src/gui/widgets/progressindicator.cpp
+++ b/src/gui/widgets/progressindicator.cpp
@@ -51,6 +51,9 @@ ProgressIndicator::ProgressIndicator() :
ProgressIndicator::~ProgressIndicator()
{
+ if (gui)
+ gui->removeDragged(this);
+
delete mIndicator;
mIndicator = nullptr;
}