Commit 0f8f7851 authored by Michael Ott's avatar Michael Ott
Browse files

Make plugin config filenames relative to _cfgFilePath if they don't start with '/'

parent b40af664
......@@ -69,7 +69,11 @@ bool PluginManager::loadPlugin(const string& name,
if (config == "") {
pluginConfig = _cfgFilePath + name + ".conf";
} else {
pluginConfig = config;
if (config[0] == '/') {
pluginConfig = config;
} else {
pluginConfig = _cfgFilePath + config;
}
}
//open plugin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment