v29.4-roots.3 · Commit 24: [PATCH 24/30] 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 4926d1e80b8e542ece446e60a1b063731b3b25be..513e713b2c22ed5ff3474bab6f795864a29a1219 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);
|