From a740a20fc2677d54e99fa981b7968b877a7b53a3 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 1 Sep 2023 15:44:24 +0200 Subject: [PATCH] qml: pass the invoice/invoiceparser to payOnchain --- electrum/gui/qml/components/WalletMainView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/WalletMainView.qml b/electrum/gui/qml/components/WalletMainView.qml index c0a954d5a..b594af707 100644 --- a/electrum/gui/qml/components/WalletMainView.qml +++ b/electrum/gui/qml/components/WalletMainView.qml @@ -63,7 +63,7 @@ Item { dialog.open() } - function payOnchain() { + function payOnchain(invoice) { var dialog = confirmPaymentDialog.createObject(mainView, { address: invoice.address, satoshis: invoice.amountOverride.isEmpty @@ -361,7 +361,7 @@ Item { } } if (invoice.invoiceType == Invoice.OnchainInvoice) { - payOnchain() + payOnchain(invoice) } else if (invoice.invoiceType == Invoice.LightningInvoice) { if (lninvoiceButPayOnchain) { var dialog = app.messageDialog.createObject(mainView, { @@ -369,7 +369,7 @@ Item { yesno: true }) dialog.accepted.connect(function() { - payOnchain() + payOnchain(invoice) }) dialog.open() } else {