mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Fix crash : Sometime when finish the action of adding an element in a diagram, qet crash.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5212 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -45,6 +45,7 @@ DiagramEventAddElement::DiagramEventAddElement(ElementsLocation &location, Diagr
|
||||
init();
|
||||
m_element -> setPos(pos);
|
||||
m_element -> displayHelpLine(true);
|
||||
m_element -> setFlag(QGraphicsItem::ItemIsSelectable, false);
|
||||
m_diagram -> addItem(m_element);
|
||||
m_running = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user