| 302 | |
| 303 | |
| 304 | void ZynAddSubFxInstrument::loadFile( const QString & _file ) |
| 305 | { |
| 306 | const std::string fn = QSTR_TO_STDSTR( _file ); |
| 307 | if( m_remotePlugin ) |
| 308 | { |
| 309 | m_remotePlugin->lock(); |
| 310 | m_remotePlugin->sendMessage( RemotePlugin::message( IdLoadPresetFile ).addString( fn ) ); |
| 311 | m_remotePlugin->waitForMessage( IdLoadPresetFile ); |
| 312 | m_remotePlugin->unlock(); |
| 313 | } |
| 314 | else |
| 315 | { |
| 316 | m_pluginMutex.lock(); |
| 317 | m_plugin->loadPreset( fn ); |
| 318 | m_pluginMutex.unlock(); |
| 319 | } |
| 320 | |
| 321 | instrumentTrack()->setName( QFileInfo( _file ).baseName().replace( QRegExp( "^[0-9]{4}-" ), QString() ) ); |
| 322 | |
| 323 | m_modifiedControllers.clear(); |
| 324 | |
| 325 | emit settingsChanged(); |
| 326 | } |
| 327 | |
| 328 | |
| 329 |
no test coverage detected