From 334b34d77bd4be442b05c4a7d98a4043667bdaf3 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 13 Nov 2019 02:51:24 +0200 Subject: [PATCH] "Show QR code" only for "new" addresses --- scripts/joinmarket-qt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 3405b12..d26e097 100644 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -1171,8 +1171,10 @@ class JMWalletTab(QWidget): if address_valid: menu.addAction("Copy address to clipboard", lambda: app.clipboard().setText(txt)) - menu.addAction("Show QR code", - lambda: self.openQRCodePopup(txt)) + # Show QR code option only for new addresses to avoid address reuse + if item.text(3) == "new": + menu.addAction("Show QR code", + lambda: self.openQRCodePopup(txt)) if xpub_exists: menu.addAction("Copy extended pubkey to clipboard", lambda: app.clipboard().setText(xpub))