Fixed IconButtonWithText update when text changes.

This commit is contained in:
23rd 2022-04-19 17:02:55 +03:00
parent e94d77847c
commit 289bcf50e9

View file

@ -35,7 +35,10 @@ void IconButtonWithText::paintEvent(QPaintEvent *e) {
} }
void IconButtonWithText::setText(const QString &text) { void IconButtonWithText::setText(const QString &text) {
_text = text; if (_text != text) {
_text = text;
update();
}
} }
} // namespace Ui } // namespace Ui