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