aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/wallettests.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-10-20 05:33:45 -0300
committerMarcoFalke <falke.marco@gmail.com>2018-10-20 05:34:53 -0300
commitfadffae17f31507a3d79a7b7f1cef71660767e0d (patch)
tree9b41e4cd3b0aaa8a9d57c2d9ea8236e33cb3bf10 /src/qt/test/wallettests.cpp
parentbe992701b018f256db6d64786624be4cb60d8975 (diff)
downloadbitcoin-fadffae17f31507a3d79a7b7f1cef71660767e0d.tar.xz
Revert "Make qt wallet test compatible with qt4"
This reverts commit e9a64615c8e18692a775765787f404266767260b.
Diffstat (limited to 'src/qt/test/wallettests.cpp')
-rw-r--r--src/qt/test/wallettests.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp
index a0cfe8ae87..115376c0f9 100644
--- a/src/qt/test/wallettests.cpp
+++ b/src/qt/test/wallettests.cpp
@@ -3,7 +3,6 @@
#include <interfaces/node.h>
#include <qt/bitcoinamountfield.h>
-#include <qt/callback.h>
#include <qt/optionsmodel.h>
#include <qt/platformstyle.h>
#include <qt/qvalidatedlineedit.h>
@@ -39,7 +38,7 @@ namespace
//! Press "Yes" or "Cancel" buttons in modal send confirmation dialog.
void ConfirmSend(QString* text = nullptr, bool cancel = false)
{
- QTimer::singleShot(0, makeCallback([text, cancel](Callback* callback) {
+ QTimer::singleShot(0, [text, cancel]() {
for (QWidget* widget : QApplication::topLevelWidgets()) {
if (widget->inherits("SendConfirmationDialog")) {
SendConfirmationDialog* dialog = qobject_cast<SendConfirmationDialog*>(widget);
@@ -49,8 +48,7 @@ void ConfirmSend(QString* text = nullptr, bool cancel = false)
button->click();
}
}
- delete callback;
- }), &Callback::call);
+ });
}
//! Send coins to address and return txid.