From f852c381b5807bcdab779b94a033fe29d40de2af Mon Sep 17 00:00:00 2001 From: ronso0 Date: Tue, 21 Jul 2020 12:57:55 +0200 Subject: WWidgetGroup/WLabel: early exit when updating highlight property --- src/widget/wlabel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widget/wlabel.cpp') 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); } -- cgit v1.2.3