diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-03 00:09:09 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:20 +0100 |
commit | 545071e998806235442edda5f575ee61e836abe9 (patch) | |
tree | 45579d717361f24c6f4a06354f5836447e691771 /spline/spline-widget.cpp | |
parent | 4766be01022d6de50f7b42647299860c2d9909b8 (diff) |
cruft
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r-- | spline/spline-widget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; |