controls/PouInstanceVariablesPanel.py
changeset 900 3e78925125e1
parent 898 6b2958f04f30
child 915 8dc28b21bdac
--- a/controls/PouInstanceVariablesPanel.py	Wed Dec 19 13:29:38 2012 +0100
+++ b/controls/PouInstanceVariablesPanel.py	Wed Dec 19 13:32:04 2012 +0100
@@ -106,6 +106,10 @@
     
     def SetPouType(self, tagname, pou_instance=None):
         self.PouTagName = tagname
+        if self.PouTagName == "Project":
+            config_name = self.Controller.GetProjectMainConfigurationName()
+            if config_name is not None:
+                self.PouTagName = self.Controller.ComputeConfigurationName(config_name)
         if pou_instance is not None:
             self.PouInstance = pou_instance