From 1f39b607ba88256b1c77a1195a5ba2056ed14ef8 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Sun, 6 Mar 2016 19:04:51 +0100 Subject: [PATCH] Fixes #2624 ("Controls window of LFO controller is not destroyed upon closing a project") When it is destroyed the ControllerView now deletes the controller sub window in case it has one. --- src/gui/widgets/ControllerView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/widgets/ControllerView.cpp b/src/gui/widgets/ControllerView.cpp index 641f27e78..4e07907b7 100644 --- a/src/gui/widgets/ControllerView.cpp +++ b/src/gui/widgets/ControllerView.cpp @@ -104,6 +104,10 @@ ControllerView::ControllerView( Controller * _model, QWidget * _parent ) : ControllerView::~ControllerView() { + if (m_subWindow) + { + delete m_subWindow; + } }