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.
This commit is contained in:
Petr Mrázek 2020-01-08 09:00:54 +01:00
parent 0d157d86b5
commit 6288805f37

View File

@ -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;
}
}