From: Stephan Witt Date: Wed, 2 Aug 2023 15:59:46 +0000 (+0200) Subject: #12001 make message boxes modal on Mac X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=550c79215b16d89a7f849145520741ba3400f58b;p=features.git #12001 make message boxes modal on Mac --- 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())