diff options
author | Petr Mrázek <peterix@gmail.com> | 2020-01-08 09:00:54 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2020-01-08 09:00:54 +0100 |
commit | 6288805f37deb4041a300cbe95dacba5075c3952 (patch) | |
tree | 5d88a9c399765d5d5b6e9c9b3b6221680fc9b342 | |
parent | 0d157d86b560f2c734c768de483f3cf297b3979e (diff) | |
download | MultiMC-6288805f37deb4041a300cbe95dacba5075c3952.tar MultiMC-6288805f37deb4041a300cbe95dacba5075c3952.tar.gz MultiMC-6288805f37deb4041a300cbe95dacba5075c3952.tar.lz MultiMC-6288805f37deb4041a300cbe95dacba5075c3952.tar.xz MultiMC-6288805f37deb4041a300cbe95dacba5075c3952.zip |
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.
-rw-r--r-- | application/groupview/GroupView.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |