mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
qt history list: fix #4896
This commit is contained in:
parent
923a9c36cb
commit
e35f2c5bed
1 changed files with 3 additions and 1 deletions
|
@ -461,7 +461,9 @@ class HistoryList(MyTreeView, AcceptFileDragDrop):
|
|||
org_idx: QModelIndex = self.indexAt(position)
|
||||
idx = self.proxy.mapToSource(org_idx)
|
||||
item: QStandardItem = self.std_model.itemFromIndex(idx)
|
||||
assert item, 'create_menu: index not found in model'
|
||||
if not item:
|
||||
# can happen e.g. before list is populated for the first time
|
||||
return
|
||||
tx_hash = idx.data(self.TX_HASH_ROLE)
|
||||
column = idx.column()
|
||||
assert tx_hash, "create_menu: no tx hash"
|
||||
|
|
Loading…
Add table
Reference in a new issue