Skip to content

Commit

Permalink
Fix Cut/Paste active in right-click for query source
Browse files Browse the repository at this point in the history
These should be disabled like properties, delete, etc.

Fixes #11871
  • Loading branch information
kk7ds committed Mar 3, 2025
1 parent ecf4657 commit 754ffe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chirp/wxui/memedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2101,6 +2101,7 @@ def _memory_rclick(self, event):
cut_item = wx.MenuItem(menu, wx.NewId(), _('Cut'))
self.Bind(wx.EVT_MENU, lambda e: self.cb_copy(cut=True), cut_item)
menu.Append(cut_item)
cut_item.Enable(self.editable)

copy_item = wx.MenuItem(menu, wx.NewId(), _('Copy'))
self.Bind(wx.EVT_MENU, lambda e: self.cb_copy(cut=False), copy_item)
Expand All @@ -2109,6 +2110,7 @@ def _memory_rclick(self, event):
paste_item = wx.MenuItem(menu, wx.NewId(), _('Paste'))
self.Bind(wx.EVT_MENU, lambda e: self.cb_paste(), paste_item)
menu.Append(paste_item)
paste_item.Enable(self.editable)

delete_menu = wx.Menu()
delete_menu_item = menu.AppendSubMenu(delete_menu, _('Delete'))
Expand Down

0 comments on commit 754ffe6

Please sign in to comment.