# HG changeset patch # User Andrey Skvortsov # Date 1460995709 -10800 # Node ID 79e54c5dead56933265cc9a5236664a493f25bd1 # Parent 8f41aa88aa46df98c97fc75a7eea1ee1e8d16e5f 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. diff -r 8f41aa88aa46 -r 79e54c5dead5 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()