856 now loads absolute and relative paths correctly

This commit is contained in:
Dave French
2014-12-21 10:51:11 +00:00
parent 0d44dc6ac5
commit f54540dea7
2 changed files with 7 additions and 3 deletions

View File

@@ -84,7 +84,9 @@ void VstSubPluginFeatures::addPluginsFromDir(QStringList* filenames, QString pat
QDir::Files, QDir::Name );
for(int i = 0; i < dlls.size(); i++)
{
filenames->append(path + QDir::separator() + dlls.at( i ));
QString fName = path + QDir::separator() + dlls.at( i );
fName.remove( 0, 1 );
filenames->append(fName);
}
}

View File

@@ -172,8 +172,10 @@ void VstPlugin::tryLoad( const QString &remoteVstPluginExecutable )
QString p = m_plugin;
p.remove(0,1);
p = ConfigManager::inst()->vstDir() + p;
if( QFileInfo( p ).dir().isRelative() )
{
p = ConfigManager::inst()->vstDir() + p;
}
sendMessage( message( IdVstLoadPlugin ).addString( QSTR_TO_STDSTR( p ) ) );