mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 06:20:53 +01:00
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ées-- M sources/editor/qetelementeditor.cpp git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2273 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user