From 461d8fe16eeec0fa8ab6646fa62d10d9c879355b Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Sat, 15 Jun 2013 16:40:41 +0000 Subject: [PATCH] =?UTF-8?q?element=20editor:=20remove=20the=20possible=20b?= =?UTF-8?q?ypass=20action=20by=20close=20window=20when=20save=20element=20?= =?UTF-8?q?if=20seem=20to=20be=20out=20of=20the=20element=20bordenow,=20no?= =?UTF-8?q?w=20check=20and=20don't=20save=20same=20if=20user=20responds=20?= =?UTF-8?q?yes,=20it=20now=20close=20editor=20and=20don't=20save=20element?= =?UTF-8?q?=20.=20Cette=20ligne,=20et=20les=20suivantes=20ci-dessous,=20se?= =?UTF-8?q?ront=20ignor=C3=A9es--?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit M sources/editor/qetelementeditor.cpp git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2273 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/qetelementeditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index 31b5d0e6c..f5ef3beb3 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -1116,6 +1116,8 @@ void QETElementEditor::copyAndPasteXml(const QDomDocument &xml_document) { @param qce Le QCloseEvent correspondant a l'evenement de fermeture */ void QETElementEditor::closeEvent(QCloseEvent *qce) { + // verification avant d'enregistrer le fichier + if (!ce_scene -> borderContainsEveryParts()) return; if (canClose()) { writeSettings(); setAttribute(Qt::WA_DeleteOnClose);