diff --git a/ui/widgets/icon_button_with_text.cpp b/ui/widgets/icon_button_with_text.cpp index 7e28158..10dbde9 100644 --- a/ui/widgets/icon_button_with_text.cpp +++ b/ui/widgets/icon_button_with_text.cpp @@ -35,7 +35,10 @@ void IconButtonWithText::paintEvent(QPaintEvent *e) { } void IconButtonWithText::setText(const QString &text) { - _text = text; + if (_text != text) { + _text = text; + update(); + } } } // namespace Ui