Browse Source

perf(widget): don't save on setExpanded if categorywidget is unchanged

Fix #4932
reviewable/pr4933/r1
Anthony Bilinski 8 years ago
parent
commit
b9845e1d23
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 3
      src/widget/categorywidget.cpp

3
src/widget/categorywidget.cpp

@ -81,6 +81,9 @@ bool CategoryWidget::isExpanded() const @@ -81,6 +81,9 @@ bool CategoryWidget::isExpanded() const
void CategoryWidget::setExpanded(bool isExpanded, bool save)
{
if (expanded == isExpanded) {
return;
}
expanded = isExpanded;
setMouseTracking(true);
listWidget->setVisible(isExpanded);

Loading…
Cancel
Save