Commit 4b2b73d8 authored by Maxime Perrotin's avatar Maxime Perrotin

Update msc wrt Condition blocks

parent 4450cb6d
......@@ -132,7 +132,7 @@ class MscGraphBasicMSCScene(QGraphicsScene):
def removeInstance(self, instance):
u""" Remove a Instance from Scene """
self._bmsc.removeInstance(instance)
self.bmsc().removeInstance(instance)
self.removeItem(instance)
instance.delete()
......@@ -243,7 +243,8 @@ class MscGraphBasicMSCScene(QGraphicsScene):
def removeCondition(self, condition):
condition.delete()
self.removeItem(condition)
if condition.scene():
self.removeItem(condition)
#**************************************************************************
# Actions
#**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment