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.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user