mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
qt lists right click: fix #5365
This commit is contained in:
parent
0ef853c046
commit
21ab65e5f7
2 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,8 @@ class AddressList(MyTreeView):
|
|||
menu = QMenu()
|
||||
if not multi_select:
|
||||
idx = self.indexAt(position)
|
||||
if not idx.isValid():
|
||||
return
|
||||
col = idx.column()
|
||||
item = self.model().itemFromIndex(idx)
|
||||
if not item:
|
||||
|
|
|
@ -124,6 +124,8 @@ class UTXOList(MyTreeView):
|
|||
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx, label))
|
||||
# "Copy ..."
|
||||
idx = self.indexAt(position)
|
||||
if not idx.isValid():
|
||||
return
|
||||
col = idx.column()
|
||||
column_title = self.model().horizontalHeaderItem(col).text()
|
||||
copy_text = self.model().itemFromIndex(idx).text() if col != self.Columns.OUTPOINT else selected[0]
|
||||
|
|
Loading…
Add table
Reference in a new issue