From 858033c0c76e9c5212745a158f827c6436b20925 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 8 Jul 2014 15:56:20 -0400 Subject: [PATCH] Fix relative VST paths on Windows --- plugins/vestige/vestige.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/vestige/vestige.cpp b/plugins/vestige/vestige.cpp index 8f41b36c9..5723aafde 100644 --- a/plugins/vestige/vestige.cpp +++ b/plugins/vestige/vestige.cpp @@ -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; }