v30.3-roots.1 · Commit 24: [PATCH 24/68] feat(qt): add guarded private key sweep dialog
src/qt/walletview.cpp
Before: src/qt/walletview.cpp · After: src/qt/walletview.cpp
File metadata
index 39e9dcadeed2acf1e006bd6c6f8687f6c5c316b5..505825ff6af79fb26ca142fc2aad1fc264827862 100644
Download original patch · Release notes
Diff rows 1–20 of 20. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/qt/walletview.cpp
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
#include <qt/receivecoinsdialog.h>
|
|
15
15
|
#include <qt/sendcoinsdialog.h>
|
|
16
16
|
#include <qt/signverifymessagedialog.h>
|
|
17
|
+
#include <qt/sweepdialog.h>
|
|
17
18
|
#include <qt/transactiontablemodel.h>
|
|
18
19
|
#include <qt/transactionview.h>
|
|
19
20
|
#include <qt/walletmodel.h>
|
|
@@ -190,6 +191,13 @@ void WalletView::gotoVerifyMessageTab(QString addr)
|
|
|
190
191
|
signVerifyMessageDialog->setAddress_VM(addr);
|
|
191
192
|
}
|
|
192
193
|
|
|
194
|
+
void WalletView::sweepPrivateKey()
|
|
195
|
+
{
|
|
196
|
+
auto* dialog = new SweepDialog(walletModel, this);
|
|
197
|
+
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
|
198
|
+
dialog->show();
|
|
199
|
+
}
|
|
200
|
+
|
|
193
201
|
bool WalletView::handlePaymentRequest(const SendCoinsRecipient& recipient)
|
|
194
202
|
{
|
|
195
203
|
return sendCoinsPage->handlePaymentRequest(recipient);
|