diff options
| author | chromatic <[email protected]> | 2021-04-21 16:35:06 -0700 |
|---|---|---|
| committer | chromatic <[email protected]> | 2021-05-23 19:37:09 -0700 |
| commit | 0565a85c7cd8df3ea3cfee2a5a9f252b870408ad (patch) | |
| tree | 4006f4d38b76df9d9f5c49e3563c730478889db5 /src/qt/walletframe.cpp | |
| parent | Merge pull request #1976 from langerhans/1.14.4-travis-pgsql (diff) | |
| download | discoin-0565a85c7cd8df3ea3cfee2a5a9f252b870408ad.tar.xz discoin-0565a85c7cd8df3ea3cfee2a5a9f252b870408ad.zip | |
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
Diffstat (limited to 'src/qt/walletframe.cpp')
| -rw-r--r-- | src/qt/walletframe.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |