Skip to content

Commit

Permalink
spline: fix busy-loop in widget redraw
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Jan 21, 2024
1 parent 3e8b8ff commit cebefd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spline/spline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit cebefd0

Please sign in to comment.