mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 23:08:47 +00:00
Make alert messages application modal and not window modal,
so assertions cannot be interrupted by terminating the application
This commit is contained in:
parent
c70da390a7
commit
3fe8ef4c1c
3 changed files with 4 additions and 4 deletions
|
@ -6,10 +6,10 @@
|
|||
|
||||
#include <QApplication>
|
||||
|
||||
ModalMessageBox::ModalMessageBox(QWidget* parent)
|
||||
ModalMessageBox::ModalMessageBox(QWidget* parent, Qt::WindowModality modality)
|
||||
: QMessageBox(parent != nullptr ? parent->window() : nullptr)
|
||||
{
|
||||
setWindowModality(Qt::WindowModal);
|
||||
setWindowModality(modality);
|
||||
setWindowFlags(Qt::Sheet | Qt::WindowTitleHint | Qt::CustomizeWindowHint);
|
||||
|
||||
// No parent is still preferable to showing a hidden parent here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue