mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
element editor bugfix: when close the editor and a primitive have focus, qet crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2408 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1116,6 +1116,7 @@ void QETElementEditor::closeEvent(QCloseEvent *qce) {
|
|||||||
if (canClose()) {
|
if (canClose()) {
|
||||||
writeSettings();
|
writeSettings();
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
ce_scene -> reset();
|
||||||
qce -> accept();
|
qce -> accept();
|
||||||
} else qce -> ignore();
|
} else qce -> ignore();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user