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:
blacksun
2013-08-03 12:00:32 +00:00
parent c0920f1118
commit 006d117edc

View File

@@ -1116,6 +1116,7 @@ void QETElementEditor::closeEvent(QCloseEvent *qce) {
if (canClose()) {
writeSettings();
setAttribute(Qt::WA_DeleteOnClose);
ce_scene -> reset();
qce -> accept();
} else qce -> ignore();
}