diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-21 11:29:38 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-21 11:31:20 +0100 |
commit | cebefd030fd883bbdbd9503884191861cf43de9a (patch) | |
tree | 56be1b55365d6cb9460581e2c5b86ec20d01efee /spline/spline.cpp | |
parent | 3e8b8ff220b9e534712ba37fc67b07000f9ac59a (diff) |
spline: fix busy-loop in widget redraw
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r-- | spline/spline.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp index a2cf2e1e..466a9a7f 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(); } |