fix bug when ctrl + DoubleClick
authorgreg
Thu, 09 Apr 2009 15:47:41 +0200
changeset 345 d79f73a337d7
parent 344 0acc2bd658f0
child 346 66fce4b3f7e2
fix bug when ctrl + DoubleClick
Viewer.py
--- a/Viewer.py	Thu Apr 09 15:40:27 2009 +0200
+++ b/Viewer.py	Thu Apr 09 15:47:41 2009 +0200
@@ -1534,7 +1534,7 @@
                         self.ParentWindow.OpenGraphicViewer(iec_path)
             elif event.ControlDown() and not event.ShiftDown():
                 if self.IsBlock(self.SelectedElement) and self.SelectedElement.GetType() in self.Controler.GetProjectPouNames(self.Debug):
-                    self.ParentWindow.EditProjectElement(ITEM_POU, self.SelectedElement.GetType())
+                    self.ParentWindow.EditProjectElement(ITEM_POU, self.Controler.ComputePouName(self.SelectedElement.GetType()))
                 else:
                     self.SelectedElement.OnLeftDClick(event, self.GetLogicalDC(), self.Scaling)
             elif event.ControlDown() and event.ShiftDown():