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();
|
updateGeometries();
|
||||||
viewport()->update();
|
viewport()->update();
|
||||||
event->accept();
|
event->accept();
|
||||||
|
m_pressedCategory = nullptr;
|
||||||
|
setState(NoState);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (state() == CollapsingState)
|
else if (state() == CollapsingState)
|
||||||
@ -404,6 +406,8 @@ void GroupView::mouseReleaseEvent(QMouseEvent *event)
|
|||||||
updateGeometries();
|
updateGeometries();
|
||||||
viewport()->update();
|
viewport()->update();
|
||||||
event->accept();
|
event->accept();
|
||||||
|
m_pressedCategory = nullptr;
|
||||||
|
setState(NoState);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user