summaryrefslogtreecommitdiffhomepage
path: root/spline/spline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-21 11:29:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-21 11:31:20 +0100
commitcebefd030fd883bbdbd9503884191861cf43de9a (patch)
tree56be1b55365d6cb9460581e2c5b86ec20d01efee /spline/spline.cpp
parent3e8b8ff220b9e534712ba37fc67b07000f9ac59a (diff)
spline: fix busy-loop in widget redraw
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r--spline/spline.cpp4
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();
}