From ea69d0b33c5db23e973c4e3c4dd3e14b0ae99d12 Mon Sep 17 00:00:00 2001 From: blacksun Date: Sun, 22 May 2016 16:13:08 +0000 Subject: [PATCH] minor git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4499 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/ElementsCollection/elementstreeview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/ElementsCollection/elementstreeview.cpp b/sources/ElementsCollection/elementstreeview.cpp index ad764b428..467aac4bf 100644 --- a/sources/ElementsCollection/elementstreeview.cpp +++ b/sources/ElementsCollection/elementstreeview.cpp @@ -114,9 +114,10 @@ void ElementsTreeView::startElementDrag(const ElementsLocation &location) drag->setPixmap(elmt_pixmap); drag->setHotSpot(elmt_hotspot); + delete temp_elmt; } drag->setMimeData(mime_data); - drag->exec(Qt::MoveAction | Qt::CopyAction); + drag->exec(Qt::CopyAction); }