From c96e44432db80878f2489cc68918fe836092cde0 Mon Sep 17 00:00:00 2001 From: Ilia Ryabokon Date: Tue, 25 Sep 2012 19:12:24 +0300 Subject: [PATCH] Never move UBFeatures outside the UBFeaturesModel --- src/board/UBBoardView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index 24d03735..a29e8e63 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -1366,6 +1366,11 @@ void UBBoardView::dropEvent (QDropEvent *event) event->acceptProposedAction(); } } + //prevent features in UBFeaturesWidget deletion from the model when event is processing inside + //Qt base classes + if (event->dropAction() == Qt::MoveAction) { + event->setDropAction(Qt::CopyAction); + } } void