diff --git a/src/widget/categorywidget.cpp b/src/widget/categorywidget.cpp index 0f15babc3..fa4dbce00 100644 --- a/src/widget/categorywidget.cpp +++ b/src/widget/categorywidget.cpp @@ -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);