From 3878fe580d165b77d397f50d40ee6efad6a1718f Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Mon, 12 Oct 2015 19:49:55 +0200 Subject: [PATCH] Removes existing controllers from the view when a new project is created Fixes #2409. --- src/core/Song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Song.cpp b/src/core/Song.cpp index 1cd0bc101..1106484d7 100644 --- a/src/core/Song.cpp +++ b/src/core/Song.cpp @@ -1216,7 +1216,7 @@ void Song::removeAllControllers() { for (int i = 0; i < m_controllers.size(); ++i) { - delete m_controllers.at(i); + removeController(m_controllers.at(i)); } m_controllers.clear();