From 5582ec974ca263c7f4c6733237f2b93d4a1d4cb6 Mon Sep 17 00:00:00 2001 From: xavier Date: Tue, 27 Dec 2011 01:40:32 +0000 Subject: [PATCH] Closing a project now attempts to close the related title block template editors. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1413 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/projectview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/projectview.cpp b/sources/projectview.cpp index e3a7d9b4c..7b2730e5a 100644 --- a/sources/projectview.cpp +++ b/sources/projectview.cpp @@ -31,6 +31,7 @@ #include "qeticons.h" #include "qetmessagebox.h" #include "qettabbar.h" +#include "qettemplateeditor.h" /** Constructeur @@ -221,6 +222,11 @@ bool ProjectView::tryClosingElementEditors() { foreach(QETElementEditor *editor, editors) { if (!editor -> close()) return(false); } + + QList template_editors = QETApp::titleBlockTemplateEditors(project_); + foreach(QETTitleBlockTemplateEditor *template_editor, template_editors) { + if (!template_editor -> close()) return(false); + } return(true); }