diff --git a/electrum/gui/qml/qeinvoice.py b/electrum/gui/qml/qeinvoice.py index 917a1b6b2..f08650440 100644 --- a/electrum/gui/qml/qeinvoice.py +++ b/electrum/gui/qml/qeinvoice.py @@ -654,9 +654,12 @@ class QEInvoiceParser(QEInvoice): if self.isSaved: return + if not self._effectiveInvoice.amount_msat and not self.amountOverride.isEmpty: + self._effectiveInvoice.amount_msat = self.amountOverride.satsInt * 1000 + self.canSave = False - self.key = self._effectiveInvoice.get_id() self._wallet.wallet.save_invoice(self._effectiveInvoice) + self.key = self._effectiveInvoice.get_id() self._wallet.invoiceModel.addInvoice(self.key) self.invoiceSaved.emit(self.key)