diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/widget/wlabel.cpp | 3 | ||||
-rw-r--r-- | src/widget/wwidgetgroup.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/widget/wlabel.cpp b/src/widget/wlabel.cpp index 60ef03b071..48404061b2 100644 --- a/src/widget/wlabel.cpp +++ b/src/widget/wlabel.cpp @@ -155,6 +155,9 @@ int WLabel::getHighlight() const { } void WLabel::setHighlight(int highlight) { + if (m_highlight == highlight) { + return; + } m_highlight = highlight; emit highlightChanged(m_highlight); } diff --git a/src/widget/wwidgetgroup.cpp b/src/widget/wwidgetgroup.cpp index f83b8f5b0b..541383b1d6 100644 --- a/src/widget/wwidgetgroup.cpp +++ b/src/widget/wwidgetgroup.cpp @@ -225,6 +225,9 @@ int WWidgetGroup::getHighlight() const { } void WWidgetGroup::setHighlight(int highlight) { + if (m_highlight == highlight) { + return; + } m_highlight = highlight; style()->unpolish(this); style()->polish(this); |