[qet] qet/qet: [5212] Fix crash : Sometime when finish the action of adding an element in a diagram, qet crash.

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


Revision: 5212
Author:   blacksun
Date:     2018-01-09 00:50:45 +0100 (Tue, 09 Jan 2018)
Log Message:
-----------
Fix crash : Sometime when finish the action of adding an element in a diagram, qet crash.

Modified Paths:
--------------
    trunk/sources/diagramevent/diagrameventaddelement.cpp

Modified: trunk/sources/diagramevent/diagrameventaddelement.cpp
===================================================================
--- trunk/sources/diagramevent/diagrameventaddelement.cpp	2018-01-08 19:28:01 UTC (rev 5211)
+++ trunk/sources/diagramevent/diagrameventaddelement.cpp	2018-01-08 23:50:45 UTC (rev 5212)
@@ -45,6 +45,7 @@
 			init();
 			m_element -> setPos(pos);
 			m_element -> displayHelpLine(true);
+			m_element -> setFlag(QGraphicsItem::ItemIsSelectable, false);
 			m_diagram -> addItem(m_element);
 			m_running = true;
 		}


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