beremiz

Parents 8f41aa88aa46
Children 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.
  • +1 -1
    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()