1
0

qml: QETxFinalizer: handle txid being None

fixes https://github.com/spesmilo/electrum/issues/10042
This commit is contained in:
SomberNight
2025-07-18 01:11:19 +00:00
parent 8770c97c4f
commit e658fa4e04
4 changed files with 10 additions and 4 deletions

View File

@@ -509,5 +509,7 @@ class QETxDetails(QObject, QtEventListener):
@pyqtSlot(result='QVariantList')
def getSerializedTx(self):
txqr = self._tx.to_qr_data()
label = self._wallet.wallet.get_label_for_txid(self._tx.txid())
label = ""
if txid := self._tx.txid():
label = self._wallet.wallet.get_label_for_txid(txid)
return [str(self._tx), txqr[0], txqr[1], label]