Commit 07244764 authored by Uwe Woessner's avatar Uwe Woessner
Browse files

fixed loading systemeditor configs

parent c28d49f6
......@@ -25,7 +25,7 @@ SystemModel::SystemModel(ComponentInterface * const component,
, systems(new SystemMapModel(this))
{
// Load components
components->loadFromDirectory(QDir(QCoreApplication::applicationDirPath() + SUBDIR_LIB_COMPONENTS));
components->loadFromDirectory(QDir(QCoreApplication::applicationDirPath() +"\\..\\"+ SUBDIR_XML_COMPONENTS));
}
bool SystemModel::clear()
......
......@@ -59,8 +59,8 @@ void SystemComponentManagerView::updateManagerView()
ui->tree->topLevelItem(index)->takeChildren();
}
// Load again the components
if (_components->loadFromDirectory(QDir(QCoreApplication::applicationDirPath() + SUBDIR_LIB_COMPONENTS)))
// Load the components again
if (_components->loadFromDirectory(QDir(QCoreApplication::applicationDirPath() + "\\..\\" + SUBDIR_XML_COMPONENTS)))
{
for (unsigned char index = 0; index < ui->tree->topLevelItemCount(); ++index)
{
......
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