summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-21 11:29:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-11 13:31:40 +0100
commit5bf553fe181102d716b158eead54934b4e92588b (patch)
treee514578b777e0941091ac46c54a3dd0710bec012
parentf74c6160baad3a2d6f1ebc38e747d7f6b3751c46 (diff)
spline: fix busy-loop in widget redraw
-rw-r--r--spline/spline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp
index ecbfc3a0..e719e668 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -42,8 +42,10 @@ void spline::set_tracking_active(bool value) const
std::shared_ptr<settings> S;
{
QMutexLocker l(&mtx);
- S = s;
+ if (value == activep)
+ return;
activep = value;
+ S = s;
}
emit S->recomputed();
}