Merge pull request #969 from tresf/patch-1

Fix relative VST paths on Windows
This commit is contained in:
Vesa V
2014-07-11 01:10:51 +03:00

View File

@@ -170,9 +170,10 @@ void vestigeInstrument::saveSettings( QDomDocument & _doc, QDomElement & _this )
{
if( QFileInfo( m_pluginDLL ).isAbsolute() )
{
QString relativePath;
if( !( relativePath = m_pluginDLL.section( configManager::
inst()->vstDir(), 1, 1 ) ).isEmpty() )
QString f = QString( m_pluginDLL ).replace( QDir::separator(), '/' );
QString vd = QString( configManager::inst()->vstDir() ).replace( QDir::separator(), '/' );
QString relativePath;
if( !( relativePath = f.section( vd, 1, 1 ) ).isEmpty() )
{
m_pluginDLL = relativePath;
}