Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
perf(widget): don't save on setExpanded if categorywidget is unchanged
Browse files Browse the repository at this point in the history
Fix #4932
  • Loading branch information
anthonybilinski committed Jan 28, 2018
1 parent 66ee539 commit b9845e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/widget/categorywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b9845e1

Please sign in to comment.