From 79abf9ca8545bd167800ca8ab261fa5346a69a03 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 25 Jul 2010 20:14:20 +0200 Subject: [PATCH] ZynAddSubFX: set working directory before setting preset directory Set working directory before setting preset directory as otherwise the changes made by LocalZynAddSubFx::setPresetDir() will get lost. --- plugins/zynaddsubfx/ZynAddSubFx.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index f8cb137e5..128cd7913 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -314,17 +314,17 @@ void ZynAddSubFxInstrument::initPlugin() m_remotePlugin->lock(); m_remotePlugin->waitForInitDone( false ); + m_remotePlugin->sendMessage( + RemotePlugin::message( IdZasfLmmsWorkingDirectory ). + addString( + QSTR_TO_STDSTR( + QString( configManager::inst()->workingDir() ) ) ) ); m_remotePlugin->sendMessage( RemotePlugin::message( IdZasfPresetDirectory ). addString( QSTR_TO_STDSTR( QString( configManager::inst()->factoryPresetsDir() + QDir::separator() + "ZynAddSubFX" ) ) ) ); - m_remotePlugin->sendMessage( - RemotePlugin::message( IdZasfLmmsWorkingDirectory ). - addString( - QSTR_TO_STDSTR( - QString( configManager::inst()->workingDir() ) ) ) ); m_remotePlugin->showUI(); m_remotePlugin->unlock(); }