Minor improvement about using pugixml

This commit is contained in:
Claveau Joshua
2020-01-18 20:03:24 +01:00
parent dc32a4298b
commit ed2e72e995
5 changed files with 18 additions and 22 deletions

View File

@@ -494,14 +494,8 @@ NamesList ElementsLocation::nameList()
{
NamesList nl;
if (isElement())
{
QSettings set;
if (set.value("use_pugixml").toBool()) {
nl.fromXml(pugiXml());
} else {
nl.fromXml(xml());
}
if (isElement()) {
nl.fromXml(pugiXml());
}
if (isDirectory())