Make alert messages application modal and not window modal,

so assertions cannot be interrupted by terminating the application
This commit is contained in:
Silent committed 2019-08-01 22:27:36 +02:00
1 parent c70da390a7
commit 3fe8ef4c1c
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ static bool QtMsgAlertHandler(const char* caption, const char* text, bool yes_no
Common::MsgType style)
{
std::optional<bool> r = RunOnObject(QApplication::instance(), [&] {
ModalMessageBox message_box(QApplication::activeWindow());
ModalMessageBox message_box(QApplication::activeWindow(), Qt::ApplicationModal);
message_box.setWindowTitle(QString::fromUtf8(caption));
message_box.setText(QString::fromUtf8(text));