diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-10-20 05:33:45 -0300 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-10-20 05:34:53 -0300 |
commit | fadffae17f31507a3d79a7b7f1cef71660767e0d (patch) | |
tree | 9b41e4cd3b0aaa8a9d57c2d9ea8236e33cb3bf10 /src/qt/test/util.cpp | |
parent | be992701b018f256db6d64786624be4cb60d8975 (diff) |
Revert "Make qt wallet test compatible with qt4"
This reverts commit e9a64615c8e18692a775765787f404266767260b.
Diffstat (limited to 'src/qt/test/util.cpp')
-rw-r--r-- | src/qt/test/util.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/qt/test/util.cpp b/src/qt/test/util.cpp index 0bd719326e..ae2fb93bf7 100644 --- a/src/qt/test/util.cpp +++ b/src/qt/test/util.cpp @@ -1,15 +1,13 @@ -#include <qt/callback.h> - #include <QApplication> #include <QMessageBox> -#include <QTimer> -#include <QString> #include <QPushButton> +#include <QString> +#include <QTimer> #include <QWidget> void ConfirmMessage(QString* text, int msec) { - QTimer::singleShot(msec, makeCallback([text](Callback* callback) { + QTimer::singleShot(msec, [text]() { for (QWidget* widget : QApplication::topLevelWidgets()) { if (widget->inherits("QMessageBox")) { QMessageBox* messageBox = qobject_cast<QMessageBox*>(widget); @@ -17,6 +15,5 @@ void ConfirmMessage(QString* text, int msec) messageBox->defaultButton()->click(); } } - delete callback; - }), &Callback::call); + }); } |