# HG changeset patch # User lbessard # Date 1235574266 -3600 # Node ID ccb47adebe80e270c5c407c0927e6e818729f22c # Parent aef88ffa5fbc6db6d7aae41b0d97ef4be93f0305 Bug with empty Action list in ActionBlockDialog fixed diff -r aef88ffa5fbc -r ccb47adebe80 PLCControler.py --- a/PLCControler.py Fri Feb 13 14:45:19 2009 +0100 +++ b/PLCControler.py Wed Feb 25 16:04:26 2009 +0100 @@ -1559,7 +1559,7 @@ # Return edited element transitions def GetEditedElementActions(self, tagname, debug = False): pou = self.GetEditedElement(tagname, debug) - if pou is None and pou.getbodyType() == "SFC": + if pou is not None and pou.getbodyType() == "SFC": actions = [] for action in pou.getactionList(): actions.append(action.getname())