Mercurial > hg > svcore
diff plugin/PiperVampPluginFactory.cpp @ 1483:7459f4c4d7c3
Merge from branch plugin-path-config
author | Chris Cannam |
---|---|
date | Mon, 11 Jun 2018 14:40:09 +0100 |
parents | c014839f49c7 |
children | c55de1488b93 |
line wrap: on
line diff
--- a/plugin/PiperVampPluginFactory.cpp Thu May 24 16:30:55 2018 +0100 +++ b/plugin/PiperVampPluginFactory.cpp Mon Jun 11 14:40:09 2018 +0100 @@ -217,7 +217,10 @@ string soname = QFileInfo(c.libraryPath).baseName().toStdString(); SVDEBUG << "INFO: For tag \"" << tag << "\" giving library " << soname << endl; from.push_back(soname); - m_libraries[QString::fromStdString(soname)] = c.libraryPath; + QString qsoname = QString::fromStdString(soname); + if (m_libraries.find(qsoname) == m_libraries.end()) { + m_libraries[qsoname] = c.libraryPath; + } } }