diff --git a/sources/NameList/nameslist.cpp b/sources/NameList/nameslist.cpp index 8117651ef..3e227823b 100644 --- a/sources/NameList/nameslist.cpp +++ b/sources/NameList/nameslist.cpp @@ -168,8 +168,13 @@ void NamesList::fromXml(const pugi::xml_node &xml_element, const QHash xml_opt = getXmlOptions(xml_options); QDomElement names_elmt = xml_document.createElement(xml_opt["ParentTagName"]); + if (hash_names.isEmpty()) { + QDomElement name_elmt = xml_document.createElement(xml_opt["TagName"]); + name_elmt.setAttribute(xml_opt["LanguageAttribute"], "en"); + name_elmt.appendChild(xml_document.createTextNode("NoName")); + names_elmt.appendChild(name_elmt); + } QHashIterator names_iterator(hash_names); while (names_iterator.hasNext()) { names_iterator.next();