From 2fd762c3089cd65db06fbe0167797d3669fe4b63 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 31 Oct 2022 19:09:08 +0000 Subject: [PATCH] qt send: bip21: ignore "lightning=" part if LN is disabled A wallet with LN disabled could not pay a bip21 URI with an address and a "lightning=" key. --- electrum/gui/qt/send_tab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/send_tab.py b/electrum/gui/qt/send_tab.py index b601221a5..4d09ba58a 100644 --- a/electrum/gui/qt/send_tab.py +++ b/electrum/gui/qt/send_tab.py @@ -443,7 +443,7 @@ class SendTab(QWidget, MessageBoxMixin, Logger): label = out.get('label') message = out.get('message') lightning = out.get('lightning') - if lightning: + if lightning and (self.wallet.has_lightning() or not address): self.handle_payment_identifier(lightning, can_use_network=can_use_network) return # use label as description (not BIP21 compliant)