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:
parent
0d157d86b5
commit
6288805f37
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user