From 0565a85c7cd8df3ea3cfee2a5a9f252b870408ad Mon Sep 17 00:00:00 2001 From: chromatic Date: Wed, 21 Apr 2021 16:35:06 -0700 Subject: Add GUI to import private keys Addresses GH #1808. There are several possible future improvements: * add a new icon for key import * reduce duplication of code between the RPC private key importer and the GUI private key importer * improving error messages for various error states --- src/qt/walletframe.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/qt/walletframe.cpp') diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index b2bb7d554..ccf4830e2 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -186,6 +186,13 @@ void WalletFrame::printPaperWallets() walletView->printPaperWallets(); } +void WalletFrame::importPrivateKey() +{ + WalletView *walletView = currentWalletView(); + if (walletView) + walletView->importPrivateKey(); +} + void WalletFrame::usedSendingAddresses() { WalletView *walletView = currentWalletView(); -- cgit v1.2.3