From 6df0520289b08eca556a0f215b7a520a4324bbc5 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 4 Jan 2024 18:18:32 +0300 Subject: [PATCH] UI: Activate message boxes on show --- src/ui/manager/windowmanager.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/manager/windowmanager.cpp b/src/ui/manager/windowmanager.cpp index afacf99e..1edce0ac 100644 --- a/src/ui/manager/windowmanager.cpp +++ b/src/ui/manager/windowmanager.cpp @@ -51,7 +51,6 @@ struct MessageBoxArg void setupModalDialog(QDialog *box) { box->setWindowModality(box->parent() ? Qt::WindowModal : Qt::ApplicationModal); - box->setModal(true); } QMessageBox *createMessageBox(const MessageBoxArg &ba, QWidget *parent = nullptr) @@ -598,7 +597,7 @@ void WindowManager::showQuestionBox(const std::function &o }, Qt::QueuedConnection); - box->show(); + WidgetWindow::showWidget(box); } void WindowManager::showErrorDialog(const QString &text, const QString &title, QWidget *parent) @@ -611,7 +610,8 @@ void WindowManager::showErrorDialog(const QString &text, const QString &title, Q .title = title, }, parent); - box->show(); + + WidgetWindow::showWidget(box); } void WindowManager::showInfoDialog(const QString &text, const QString &title, QWidget *parent) @@ -624,7 +624,8 @@ void WindowManager::showInfoDialog(const QString &text, const QString &title, QW .title = title, }, parent); - box->show(); + + WidgetWindow::showWidget(box); } bool WindowManager::showPasswordDialog(QString &password, int *unlockType)