From 6a9df9b66579152ccb8694b4347869efeaae1d45 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 2 Jun 2022 16:44:25 +0200 Subject: [PATCH] fix one init_model call on a potentially undefined _addressModel --- electrum/gui/qml/qewallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qml/qewallet.py b/electrum/gui/qml/qewallet.py index 28af7692a..06df648a9 100644 --- a/electrum/gui/qml/qewallet.py +++ b/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