From cebefd030fd883bbdbd9503884191861cf43de9a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 21 Jan 2024 11:29:38 +0100 Subject: [PATCH] spline: fix busy-loop in widget redraw --- spline/spline.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spline/spline.cpp b/spline/spline.cpp index a2cf2e1ea..466a9a7f5 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -42,8 +42,10 @@ void spline::set_tracking_active(bool value) const std::shared_ptr S; { QMutexLocker l(&mtx); - S = s; + if (value == activep) + return; activep = value; + S = s; } emit S->recomputed(); }