Skip to content

Commit

Permalink
wxGUI/gui_core: fix right mouse click on the root tree node to invoke…
Browse files Browse the repository at this point in the history
… menu (#2119)
  • Loading branch information
tmszi committed Jan 23, 2022
1 parent 4921d17 commit b548e97
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions gui/wxpython/gui_core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,11 @@ def ShowContextMenu(self, node):
else:
label1 = nodes[0].label
texts.append((_("Copy '%s'" % self._cutLabel(label1)), label1))
if nodes[0].data and nodes[0].data[self._colNames[1]]:
label2 = nodes[0].data[self._colNames[1]]
texts.insert(
0, (_(
"Copy '%s'" %
self._cutLabel(label2)), label2))
texts.append((_("Copy line"), label1 + ': ' + label2))
col1 = self._colNames[1]
if nodes[0].data and col1 in nodes[0].data and nodes[0].data[col1]:
label2 = nodes[0].data[col1]
texts.insert(0, (_("Copy '%s'" % self._cutLabel(label2)), label2))
texts.append((_("Copy line"), label1 + ": " + label2))

ids = []
for text in texts:
Expand Down

0 comments on commit b548e97

Please sign in to comment.