aboutsummaryrefslogtreecommitdiff
path: root/src/debug_functions.cpp
diff options
context:
space:
mode:
authorstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2021-01-04 16:44:14 +0100
committerstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2021-01-04 16:44:14 +0100
commit04ed1a1812139b0cbef5599a6acd8ee9c3155c2f (patch)
tree9089f41ff3ecb278658c4341eeea1c59d6779cb7 /src/debug_functions.cpp
parent5ab50c843174b714e7aca807d9aeec1b70f21679 (diff)
add 3 second timer before OK shows up
Diffstat (limited to 'src/debug_functions.cpp')
-rw-r--r--src/debug_functions.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp
index b8321640..f96d6b03 100644
--- a/src/debug_functions.cpp
+++ b/src/debug_functions.cpp
@@ -1,5 +1,6 @@
#include <QCoreApplication>
#include <QMessageBox>
+#include <QTimer>
#include "debug_functions.h"
@@ -24,6 +25,10 @@ void call_notice(QString p_message)
msgBox->setWindowTitle(
QCoreApplication::translate("debug_functions", "Notice"));
- // msgBox->setWindowModality(Qt::NonModal);
- msgBox->exec();
+ msgBox->setStandardButtons(QMessageBox::NoButton);
+
+ QTimer::singleShot(3000, msgBox, std::bind(&QMessageBox::setStandardButtons,msgBox,QMessageBox::Ok));
+
+ msgBox->exec();
+
}