summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/DeprecatedLoader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/DeprecatedLoader.cpp b/src/client/DeprecatedLoader.cpp
index 35cbd05a..ac71a32d 100644
--- a/src/client/DeprecatedLoader.cpp
+++ b/src/client/DeprecatedLoader.cpp
@@ -27,6 +27,7 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
+#include <glibmm/miscutils.h>
#include "raul/log.hpp"
#include "raul/Path.hpp"
#include "shared/LV2URIMap.hpp"
@@ -571,7 +572,7 @@ DeprecatedLoader::load_subpatch(const string& base_filename, const Path& parent,
} else if ((!xmlStrcmp(cur->name, (const xmlChar*)"polyphony"))) {
initial_data.insert(make_pair(uris.ingen_polyphony, (int)poly));
} else if ((!xmlStrcmp(cur->name, (const xmlChar*)"filename"))) {
- filename = base_filename + "/" + (const char*)key;
+ filename = Glib::build_filename(base_filename, (const char*)key);
} else { // Don't know what this tag is, add it as variable
if (key != NULL && strlen((const char*)key) > 0)
add_variable(initial_data, (const char*)cur->name, (const char*)key);