From 6288805f37deb4041a300cbe95dacba5075c3952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 8 Jan 2020 09:00:54 +0100 Subject: GH-2853 fix collapsing state being sticky in group view Now it resets properly and collapsing a group doesn't make all subsequent clicks collapse groups. --- application/groupview/GroupView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/groupview/GroupView.cpp b/application/groupview/GroupView.cpp index 5ccbfd39..a1a28532 100644 --- a/application/groupview/GroupView.cpp +++ b/application/groupview/GroupView.cpp @@ -394,6 +394,8 @@ void GroupView::mouseReleaseEvent(QMouseEvent *event) updateGeometries(); viewport()->update(); event->accept(); + m_pressedCategory = nullptr; + setState(NoState); return; } else if (state() == CollapsingState) @@ -404,6 +406,8 @@ void GroupView::mouseReleaseEvent(QMouseEvent *event) updateGeometries(); viewport()->update(); event->accept(); + m_pressedCategory = nullptr; + setState(NoState); return; } } -- cgit v1.2.3