on Windows, make sure that Types tree items are selected when right-clicked.
authorb.taylor@willowglen.ca
Fri, 18 Sep 2009 10:31:01 -0600
changeset 430 8efd4c6874cd
parent 429 c270d61a671d
child 431 c1c92d068ac5
child 432 f4c0e9c9b3b9
on Windows, make sure that Types tree items are selected when right-clicked.
This fixes a bug where the wrong element can be deleted.
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Fri Sep 18 09:42:13 2009 -0600
+++ b/PLCOpenEditor.py	Fri Sep 18 10:31:01 2009 -0600
@@ -1794,6 +1794,7 @@
     def OnTypesTreeRightUp(self, event):
         if wx.Platform == '__WXMSW__':
             item = event.GetItem()
+            self.TypesTree.SelectItem(item)
         else:
             item = self.TypesTree.GetSelection()
         name = self.TypesTree.GetItemText(item)