[qet] qet/qet: [5550] Fix crash when load an old project, wich contain element without her definition embedded, aka "ghost element" .

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


Revision: 5550
Author:   blacksun
Date:     2018-10-10 18:48:44 +0200 (Wed, 10 Oct 2018)
Log Message:
-----------
Fix crash when load an old project, wich contain element without her definition embedded, aka "ghost element".

Modified Paths:
--------------
    trunk/sources/diagram.cpp

Modified: trunk/sources/diagram.cpp
===================================================================
--- trunk/sources/diagram.cpp	2018-10-05 13:23:26 UTC (rev 5549)
+++ trunk/sources/diagram.cpp	2018-10-10 16:48:44 UTC (rev 5550)
@@ -898,6 +898,7 @@
 			QString debug_message = QString("Diagram::fromXml() : Le chargement de la description de l'element %1 a echoue avec le code d'erreur %2").arg(element_location.path()).arg(state);
 			qDebug() << qPrintable(debug_message);
 			delete nvel_elmt;
+			continue;
 		}
 		
 		addItem(nvel_elmt);


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