# HG changeset patch # User Laurent Bessard # Date 1338760076 -7200 # Node ID 25fbbb005a308e0468eb509a34a4930f64b053cd # Parent cf3db17751055840ac2cee94762a9d352dd9390a Fix bug in POUinstanceVariablesPanel when no tagname defined diff -r cf3db1775105 -r 25fbbb005a30 controls/PouInstanceVariablesPanel.py --- a/controls/PouInstanceVariablesPanel.py Sun Jun 03 23:47:13 2012 +0200 +++ b/controls/PouInstanceVariablesPanel.py Sun Jun 03 23:47:56 2012 +0200 @@ -132,7 +132,7 @@ self.InstanceChoice.Clear() self.InstanceChoice.SetValue("") - if self.PouTagName is not None: + if self.Controller is not None and self.PouTagName is not None: self.PouInfos = self.Controller.GetPouVariables(self.PouTagName, self.Debug) else: self.PouInfos = None