aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r--src/ui/UserInterfaceUtils.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index 838e4fbe..81627ee8 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -232,14 +232,15 @@ void CommonUtils::WaitForOpera(QWidget *parent,
new WaitingDialog(QString::fromStdString(waiting_dialog_title), parent);
connect(dialog, &QDialog::finished, &looper, &QEventLoop::quit);
connect(dialog, &QDialog::finished, dialog, &QDialog::deleteLater);
-
dialog->show();
- opera([dialog]() {
- SPDLOG_DEBUG("called operating waiting cb, dialog: {}",
- static_cast<void *>(dialog));
- dialog->close();
- dialog->accept();
+ QTimer::singleShot(64, parent, [=]() {
+ opera([dialog]() {
+ SPDLOG_DEBUG("called operating waiting cb, dialog: {}",
+ static_cast<void *>(dialog));
+ dialog->close();
+ dialog->accept();
+ });
});
looper.exec();