From 644f5cb8de97add530f34a02968b5fe09e91ba50 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Tue, 25 Feb 2014 14:28:55 +0100 Subject: [PATCH] fixed mouse button release detection --- apps/opencs/view/render/scenewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/view/render/scenewidget.cpp b/apps/opencs/view/render/scenewidget.cpp index b498fba061..d6f12b5298 100644 --- a/apps/opencs/view/render/scenewidget.cpp +++ b/apps/opencs/view/render/scenewidget.cpp @@ -235,7 +235,7 @@ namespace CSVRender void SceneWidget::mouseReleaseEvent (QMouseEvent *event) { - if (event->buttons() & Qt::LeftButton) + if (!(event->buttons() & Qt::LeftButton)) mDragging = false; }