Bug with location Drag'n Drop on TextViewer fixed
authorlaurent
Mon, 19 Oct 2009 15:58:20 +0200
changeset 448 93a2f2034f98
parent 447 6083dcecd2c5
child 449 19720ee1051c
child 453 d01e025b868d
Bug with location Drag'n Drop on TextViewer fixed
TextViewer.py
--- a/TextViewer.py	Mon Oct 12 10:20:09 2009 +0200
+++ b/TextViewer.py	Mon Oct 19 15:58:20 2009 +0200
@@ -226,9 +226,9 @@
                 if len(values) > 2 and pou_type == "program":
                     var_name = values[3]
                     if var_name.upper() in [name.upper() for name in self.Controler.GetProjectPouNames(self.Debug)]:
-                        message = _("\"%s\" pou already exists!")%blockname
+                        message = _("\"%s\" pou already exists!")%var_name
                     elif var_name.upper() in [name.upper() for name in self.Controler.GetEditedElementVariables(self.TagName, self.Debug)]:
-                        message = _("\"%s\" element for this pou already exists!")%blockname
+                        message = _("\"%s\" element for this pou already exists!")%var_name
                     else:
                         if values[2] is not None:
                             var_type = values[2]