Bug with empty Action list in ActionBlockDialog fixed
authorlbessard
Wed, 25 Feb 2009 16:04:26 +0100
changeset 310 ccb47adebe80
parent 309 aef88ffa5fbc
child 311 3e22e53878b8
Bug with empty Action list in ActionBlockDialog fixed
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())