Browse Source

qml: add note regarding validity of qetxdetails instance and reset tx/txid members

master
Sander van Grieken 3 years ago
parent
commit
e476e60247
  1. 5
      electrum/gui/qml/qetxdetails.py

5
electrum/gui/qml/qetxdetails.py

@ -381,6 +381,11 @@ class QETxDetails(QObject, QtEventListener):
self._wallet.wallet.adb.remove_transaction(txid)
self._wallet.wallet.save_db()
# NOTE: from here, the tx/txid is unknown and all properties are invalid.
# UI should close TxDetails and avoid interacting with this qetxdetails instance.
self._txid = None
self._tx = None
@pyqtSlot()
def save(self):
if not self._tx:

Loading…
Cancel
Save