From 2642095fcf6961c14b8a47dbae6ad56e3e0a0353 Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 26 Dec 2010 22:52:54 +0000 Subject: [PATCH] Fixed the QETProject::setTemplateXmlDescription. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1135 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetproject.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 177542307..b20eedfcf 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -337,12 +337,9 @@ bool QETProject::setTemplateXmlDescription(const QString &template_name, const Q QDomElement old_description = titleblock_templates_xml_[template_name]; if (!old_description.parentNode().isNull()) { old_description.parentNode().replaceChild(import, old_description); - titleblock_templates_xml_[template_name] = import; } - } else { - // or simply insert the new one - titleblock_templates_xml_.insert(template_name, import); } + titleblock_templates_xml_.insert(template_name, import); if (titleblock_templates_.contains(template_name)) { titleblock_templates_[template_name] -> loadFromXmlElement(titleblock_templates_xml_[template_name]);