diff plugin/PiperVampPluginFactory.cpp @ 1482:c014839f49c7 plugin-path-config

Record path associated with first helper found for a plugin, not last (so native helper in preference to 32-bit helper). Also more debug output
author Chris Cannam
date Mon, 11 Jun 2018 11:34:11 +0100
parents cee1be4fb8c1
children c55de1488b93
line wrap: on
line diff
--- a/plugin/PiperVampPluginFactory.cpp	Fri Jun 08 14:30:33 2018 +0100
+++ b/plugin/PiperVampPluginFactory.cpp	Mon Jun 11 11:34:11 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;
+            }
         }
     }