From 3fce2dd666adda095a4c11618676114a31a1bb34 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 25 Jul 2013 22:22:43 +0200 Subject: [PATCH] ZynAddSubFx: finalize controller connections in toggleUI() As controller connections are not fully restored via AutomatableModel::loadSettings(), a call to ControllerConnection::finalizeConnections() is neccessary to do so. Normally this function is called at the end when loading a project but when the user just toggles ZASF's UI settings are saved/loaded without finalizing connections which results in connected knobs which are not reacting to the controller they are connected to. Closes #544. --- plugins/zynaddsubfx/ZynAddSubFx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index 5ad842a00..3db7a59e6 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -41,6 +41,7 @@ #include "string_pair_drag.h" #include "RemoteZynAddSubFx.h" #include "LocalZynAddSubFx.h" +#include "ControllerConnection.h" #include "embed.cpp" #include "moc_ZynAddSubFx.cxx" @@ -624,6 +625,8 @@ void ZynAddSubFxView::toggleUI() connect( model->m_remotePlugin, SIGNAL( clickedCloseButton() ), m_toggleUIButton, SLOT( toggle() ) ); } + + ControllerConnection::finalizeConnections(); } }