[qet] [1135] Fixed the QETProject::setTemplateXmlDescription.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1135
Author:   xavier
Date:     2010-12-26 23:52:54 +0100 (Sun, 26 Dec 2010)
Log Message:
-----------
Fixed the QETProject::setTemplateXmlDescription.

Modified Paths:
--------------
    branches/0.3/sources/qetproject.cpp

Modified: branches/0.3/sources/qetproject.cpp
===================================================================
--- branches/0.3/sources/qetproject.cpp	2010-12-24 23:35:40 UTC (rev 1134)
+++ branches/0.3/sources/qetproject.cpp	2010-12-26 22:52:54 UTC (rev 1135)
@@ -337,12 +337,9 @@
 		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]);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/