We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5046e7 commit b5bec4eCopy full SHA for b5bec4e
src/qt/test/wallettests.cpp
@@ -22,7 +22,9 @@ namespace
22
//! Press "Yes" button in modal send confirmation dialog.
23
void ConfirmSend()
24
{
25
- QTimer::singleShot(0, Qt::PreciseTimer, []() {
+ QTimer* timer = new QTimer;
26
+ timer->setSingleShot(true);
27
+ QObject::connect(timer, &QTimer::timeout, []() {
28
for (QWidget* widget : QApplication::topLevelWidgets()) {
29
if (widget->inherits("SendConfirmationDialog")) {
30
SendConfirmationDialog* dialog = qobject_cast<SendConfirmationDialog*>(widget);
@@ -32,6 +34,7 @@ void ConfirmSend()
32
34
}
33
35
36
});
37
+ timer->start(0);
38
39
40
//! Send coins to address and return txid.
0 commit comments