summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline-widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget/spline-widget.cpp')
-rw-r--r--spline-widget/spline-widget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp
index ce16f7be..54107bbe 100644
--- a/spline-widget/spline-widget.cpp
+++ b/spline-widget/spline-widget.cpp
@@ -5,6 +5,7 @@
* copyright notice and this permission notice appear in all copies.
*/
+#include "compat/util.hpp"
#include "spline-widget.hpp"
#include <QPainter>
#include <QPaintEvent>
@@ -40,8 +41,8 @@ void spline_widget::setConfig(spline* spl)
if (spl)
{
- spline::settings& s = spl->get_settings();
- connection = connect(&s, &spline::settings::recomputed,
+ mem<spline::settings> s = spl->get_settings();
+ connection = connect(s.get(), &spline::settings::recomputed,
this, [this]() { reload_spline(); },
Qt::QueuedConnection);
}