From 69108c8a2892cf87a3d425b5e82e0eadbb5f7fa9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Jun 2013 14:20:24 +0300 Subject: clear drag selection if selected item removed. --- src/item.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/item.cpp') diff --git a/src/item.cpp b/src/item.cpp index 90ca9ea35..f686f5cf6 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -68,6 +68,7 @@ Item::~Item() mDrawImage->decRef(); mDrawImage = nullptr; } + dragDrop.clearItem(this); } void Item::setId(const int id, const unsigned char color) -- cgit v1.2.3-60-g2f50