From 1b031d432e3472a296cbd73f7c174fd49bed0bc1 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 13 May 2025 18:23:11 +0000 Subject: [PATCH] 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 --- electrum/gui/qt/transaction_dialog.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py index 70c2a6b7d..dfbfc6684 100644 --- a/electrum/gui/qt/transaction_dialog.py +++ b/electrum/gui/qt/transaction_dialog.py @@ -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, )