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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp
index 54107bbe..6e3a95b3 100644
--- a/spline-widget/spline-widget.cpp
+++ b/spline-widget/spline-widget.cpp
@@ -29,6 +29,12 @@ spline_widget::spline_widget(QWidget *parent) :
setMouseTracking(true);
}
+spline_widget::~spline_widget()
+{
+ if (connection)
+ QObject::disconnect(connection);
+}
+
void spline_widget::setConfig(spline* spl)
{
if (spl != _config)