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
This commit is contained in:
xavier
2011-12-27 01:40:32 +00:00
parent 82e6e22a4a
commit 5582ec974c

View File

@@ -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<QETTitleBlockTemplateEditor *> template_editors = QETApp::titleBlockTemplateEditors(project_);
foreach(QETTitleBlockTemplateEditor *template_editor, template_editors) {
if (!template_editor -> close()) return(false);
}
return(true);
}