diff --git a/sources/autoNum/assignvariables.cpp b/sources/autoNum/assignvariables.cpp index a4e8c9d03..2a4bd9bd7 100644 --- a/sources/autoNum/assignvariables.cpp +++ b/sources/autoNum/assignvariables.cpp @@ -467,9 +467,20 @@ namespace autonum QString filepath = QETApp::commonElementsDir().append(qet_labels); QFile file(filepath); file.isReadable(); - if (!file.open(QFile::ReadOnly | QFile::Text)) return QString(); + + if (current_location.fileName() != "10_electric"){ + QString custom_labels = "qet_labels.xml"; + QString customfilepath = QETApp::customElementsDir().append(custom_labels); + QFile file(customfilepath); + file.isReadable(); + if (!file.open(QFile::ReadOnly | QFile::Text)) + return QString(); + } + + + rxml.setDevice(&file); rxml.readNext();