[qet] [2408] element editor bugfix: when close the editor and a primitive have focus, qet crash

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2408
Author:   blacksun
Date:     2013-08-03 14:00:32 +0200 (Sat, 03 Aug 2013)
Log Message:
-----------
element editor bugfix: when close the editor and a primitive have focus, qet crash 

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2013-08-03 11:16:00 UTC (rev 2407)
+++ trunk/sources/editor/qetelementeditor.cpp	2013-08-03 12:00:32 UTC (rev 2408)
@@ -1116,6 +1116,7 @@
 	if (canClose()) {
 		writeSettings();
 		setAttribute(Qt::WA_DeleteOnClose);
+		ce_scene -> reset();
 		qce -> accept();
 	} else qce -> ignore();
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/