From 545071e998806235442edda5f575ee61e836abe9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 3 Jan 2019 00:09:09 +0100 Subject: cruft --- spline/spline-widget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spline/spline-widget.cpp') diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index 7c92094d..bfe8aff1 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -31,7 +31,10 @@ spline_widget::spline_widget(QWidget *parent) : QWidget(parent) spline_widget::~spline_widget() { if (connection) + { QObject::disconnect(connection); + connection = {}; + } } void spline_widget::setConfig(base_spline* spl) @@ -39,7 +42,7 @@ void spline_widget::setConfig(base_spline* spl) if (connection) { QObject::disconnect(connection); - connection = QMetaObject::Connection(); + connection = {}; } config = spl; -- cgit v1.2.3