[qet] [1413] Closing a project now attempts to close the related title block template editors .

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


Revision: 1413
Author:   xavier
Date:     2011-12-27 02:40:32 +0100 (Tue, 27 Dec 2011)
Log Message:
-----------
Closing a project now attempts to close the related title block template editors.

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

Modified: branches/0.3/sources/projectview.cpp
===================================================================
--- branches/0.3/sources/projectview.cpp	2011-12-27 01:39:45 UTC (rev 1412)
+++ branches/0.3/sources/projectview.cpp	2011-12-27 01:40:32 UTC (rev 1413)
@@ -31,6 +31,7 @@
 #include "qeticons.h"
 #include "qetmessagebox.h"
 #include "qettabbar.h"
+#include "qettemplateeditor.h"
 
 /**
 	Constructeur
@@ -221,6 +222,11 @@
 	foreach(QETElementEditor *editor, editors) {
 		if (!editor -> close()) return(false);
 	}
+	
+	QList<QETTitleBlockTemplateEditor *> template_editors = QETApp::titleBlockTemplateEditors(project_);
+	foreach(QETTitleBlockTemplateEditor *template_editor, template_editors) {
+		if (!template_editor -> close()) return(false);
+	}
 	return(true);
 }
 


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