From 550c79215b16d89a7f849145520741ba3400f58b Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Wed, 2 Aug 2023 17:59:46 +0200 Subject: [PATCH] #12001 make message boxes modal on Mac --- src/frontends/qt/GuiAlert.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontends/qt/GuiAlert.cpp b/src/frontends/qt/GuiAlert.cpp index 288289c05d..30f55eb220 100644 --- a/src/frontends/qt/GuiAlert.cpp +++ b/src/frontends/qt/GuiAlert.cpp @@ -113,6 +113,9 @@ buttonid doPrompt(docstring const & title, docstring const & question, QMessageBox msg_box(QMessageBox::Information, toqstr(title), toqstr(question), QMessageBox::NoButton, qApp->focusWidget()); +#ifdef Q_OS_MAC + msg_box.setWindowModality(Qt::WindowModal); +#endif b[0] = msg_box.addButton(b1.empty() ? "OK" : toqstr(b1), QMessageBox::ActionRole); if (!b2.empty()) -- 2.39.5