Add default path for SF2

added a default path for sf
create folder
add folder to setup dialog
sf player now uses this location
This commit is contained in:
Dave French
2015-03-08 17:57:55 +00:00
parent e9b15b51fb
commit d9995f5548
5 changed files with 67 additions and 4 deletions

View File

@@ -1068,7 +1068,7 @@ void sf2InstrumentView::showFileDialog()
QString f = k->m_filename;
if( QFileInfo( f ).isRelative() )
{
f = ConfigManager::inst()->userSamplesDir() + f;
f = ConfigManager::inst()->sf2Dir() + f;
if( QFileInfo( f ).exists() == false )
{
f = ConfigManager::inst()->factorySamplesDir() + k->m_filename;
@@ -1079,7 +1079,7 @@ void sf2InstrumentView::showFileDialog()
}
else
{
ofd.setDirectory( ConfigManager::inst()->userSamplesDir() );
ofd.setDirectory( ConfigManager::inst()->sf2Dir() );
}
m_fileDialogButton->setEnabled( false );