From 327e42d842bca0c052b8a68440e1599b7cbf0d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haris=20Gu=C5=A1i=C4=87?= Date: Mon, 13 Sep 2021 16:09:02 +0200 Subject: [PATCH] Fix drag behavior of Tool Settings button (#1891) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Haris Gušić --- src/widgets/draggablewidgetmaker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/draggablewidgetmaker.cpp b/src/widgets/draggablewidgetmaker.cpp index cd264d5b..bb8eeb36 100644 --- a/src/widgets/draggablewidgetmaker.cpp +++ b/src/widgets/draggablewidgetmaker.cpp @@ -52,8 +52,8 @@ bool DraggableWidgetMaker::eventFilter(QObject* obj, QEvent* event) } } break; case QEvent::MouseButtonRelease: { + m_isPressing = false; if (m_isDragging) { - m_isPressing = false; m_isDragging = false; event->ignore(); return true;