Browse Source

fix one init_model call on a potentially undefined _addressModel

patch-4
Sander van Grieken 3 years ago
parent
commit
6a9df9b665
  1. 2
      electrum/gui/qml/qewallet.py

2
electrum/gui/qml/qewallet.py

@ -395,7 +395,7 @@ class QEWallet(QObject):
key = self.create_bitcoin_request(amount.satsInt, message, expiration, ignore_gap)
if not key:
return
self._addressModel.init_model()
self.addressModel.init_model()
except InvoiceError as e:
self.requestCreateError.emit('fatal',_('Error creating payment request') + ':\n' + str(e))
return

Loading…
Cancel
Save