summaryrefslogtreecommitdiffstats
path: root/src/widget/wlabel.cpp
diff options
context:
space:
mode:
authorronso0 <ronso0@mixxx.org>2020-07-21 12:57:55 +0200
committerronso0 <ronso0@mixxx.org>2020-07-21 12:57:55 +0200
commitf852c381b5807bcdab779b94a033fe29d40de2af (patch)
treeeacd138f34fd87d37df96f634e2f9894324d650b /src/widget/wlabel.cpp
parent1df462fc8e2845c3c9c20835f94ed1700580ec33 (diff)
WWidgetGroup/WLabel: early exit when updating highlight property
Diffstat (limited to 'src/widget/wlabel.cpp')
-rw-r--r--src/widget/wlabel.cpp3
1 files changed, 3 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);
}