ZynAddSubFx: when loading a preset set preset name as track name

Based upon the suggestion of Tres Finocchiaro we use the filename of a
ZASF preset for determining the preset name and set it as track name.
This commit is contained in:
Tobias Doerffel
2013-01-06 22:48:41 +01:00
parent dcf7245fe8
commit 716146848c

View File

@@ -301,6 +301,9 @@ void ZynAddSubFxInstrument::loadFile( const QString & _file )
m_pluginMutex.unlock();
}
instrumentTrack()->setName( QFileInfo( _file ).baseName().
replace( QRegExp( "^[0-9]{4}-" ), QString() ) );
m_modifiedControllers.clear();
emit settingsChanged();