[qet] [2273] element editor: remove the possible bypass action by close window when save element |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2273
Author: scorpio810
Date: 2013-06-15 18:40:41 +0200 (Sat, 15 Jun 2013)
Log Message:
-----------
element editor: remove the possible bypass action by close window when save element
if seem to be out of the element bordenow, now check and don't save same if user responds yes,
it now close editor and don't save element .
Cette ligne, et les suivantes ci-dessous, seront ignor?\195?\169es--
M sources/editor/qetelementeditor.cpp
Modified Paths:
--------------
trunk/sources/editor/qetelementeditor.cpp
Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp 2013-06-15 15:25:17 UTC (rev 2272)
+++ trunk/sources/editor/qetelementeditor.cpp 2013-06-15 16:40:41 UTC (rev 2273)
@@ -1116,6 +1116,8 @@
@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);