From a63453846b78bde8a7a7f5f82f77ce6b192eb221 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sat, 5 Mar 2016 11:14:08 +0100 Subject: [PATCH] properly clear drag mode at the end of a drag --- apps/opencs/view/render/worldspacewidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/opencs/view/render/worldspacewidget.cpp b/apps/opencs/view/render/worldspacewidget.cpp index aea23ba7e4..df57904735 100644 --- a/apps/opencs/view/render/worldspacewidget.cpp +++ b/apps/opencs/view/render/worldspacewidget.cpp @@ -372,6 +372,7 @@ void CSVRender::WorldspaceWidget::abortDrag() editMode.dragAborted(); mDragging = false; + mDragMode.clear(); } } @@ -584,6 +585,7 @@ void CSVRender::WorldspaceWidget::editModeChanged (const std::string& id) { dynamic_cast (*mEditMode->getCurrent()).setEditLock (mLocked); mDragging = false; + mDragMode.clear(); } void CSVRender::WorldspaceWidget::showToolTip()