fix issue, then it wasn't possible to remove functional blocks from
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Apr 2016 19:08:29 +0300
changeset 1480 79e54c5dead5
parent 1479 8f41aa88aa46
child 1481 5b294dcaae18
fix issue, then it wasn't possible to remove functional blocks from
project using right click and popup menu.

The problem is that, PopupMenu was called using IDEFrame object and as
a result item in ProjectTree loosed focus and focus went to IDEFrame.
Therefore later functions couldn't detect which item in ProjectTree
was selected.
IDEFrame.py
--- a/IDEFrame.py	Mon Apr 18 18:59:11 2016 +0300
+++ b/IDEFrame.py	Mon Apr 18 19:08:29 2016 +0300
@@ -1918,7 +1918,7 @@
                 self.Bind(wx.EVT_MENU, self.OnDeleteMenu, id=new_id)
 
         if menu is not None:
-            self.PopupMenu(menu)
+            self.FindFocus().PopupMenu(menu)
             menu.Destroy()
 
         self.ResetSelectedItem()