mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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:
@@ -31,6 +31,7 @@
|
|||||||
#include "qeticons.h"
|
#include "qeticons.h"
|
||||||
#include "qetmessagebox.h"
|
#include "qetmessagebox.h"
|
||||||
#include "qettabbar.h"
|
#include "qettabbar.h"
|
||||||
|
#include "qettemplateeditor.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructeur
|
Constructeur
|
||||||
@@ -221,6 +222,11 @@ bool ProjectView::tryClosingElementEditors() {
|
|||||||
foreach(QETElementEditor *editor, editors) {
|
foreach(QETElementEditor *editor, editors) {
|
||||||
if (!editor -> close()) return(false);
|
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);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user