1
0

qt tx dialog: allow clicking into the future. wheeee

- "outpoints" for inputs were already clickable to open the funding tx
- now "outpoints" for outputs are also clickable to open the spending tx
This commit is contained in:
SomberNight
2025-05-13 18:23:11 +00:00
parent 2947de23da
commit 1b031d432e

View File

@@ -285,8 +285,16 @@ class TxInOutWidget(QWidget):
else:
short_id = f"unknown:{txout_idx}"
addr = o.get_ui_address_str()
spender_txid = None # type: Optional[str]
if tx_hash:
spender_txid = self.wallet.db.get_spent_outpoint(tx_hash, txout_idx)
tcf_shortid = None
if spender_txid:
tcf_shortid = QTextCharFormat(lnk)
tcf_shortid.setAnchorHref(spender_txid)
insert_tx_io(
cursor=cursor, is_coinbase=False, txio_idx=txout_idx,
tcf_shortid=tcf_shortid,
short_id=str(short_id), addr=addr, value=o.value,
)