--- a/graphics/SFC_Objects.py Wed Jan 23 18:25:57 2008 +0100
+++ b/graphics/SFC_Objects.py Wed Jan 23 18:26:49 2008 +0100
@@ -118,7 +118,7 @@
# Remove output connector from step
def RemoveInput(self):
if self.Input:
- self.Input.UnConnect()
+ self.Input.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
self.Input = None
self.RefreshBoundingBox()
@@ -131,7 +131,7 @@
# Remove output connector from step
def RemoveOutput(self):
if self.Output:
- self.Output.UnConnect()
+ self.Output.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
self.Output = None
self.RefreshBoundingBox()
@@ -144,7 +144,7 @@
# Remove action connector from step
def RemoveAction(self):
if self.Action:
- self.Action.UnConnect()
+ self.Action.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
self.Action = None
self.RefreshBoundingBox()
@@ -674,7 +674,7 @@
def SetType(self, type, condition = None):
if self.Type != type:
if self.Type == "connection":
- self.Condition.UnConnect()
+ self.Condition.UnConnect(delete = self.Parent.GetDrawingMode() == FREEDRAWING_MODE)
self.Type = type
if type == "connection":
self.Condition = Connector(self, "", "BOOL", wx.Point(0, self.Size[1] / 2), WEST)