Qt: Use window modality for message boxes
Stops them opening in the middle of the screen on MacOS.
This commit is contained in:
@@ -304,6 +304,7 @@ bool QtHost::DownloadMissingFont(QWidget* dialog_parent, const char* font_name,
|
||||
{
|
||||
QMessageBox msgbox(dialog_parent);
|
||||
msgbox.setWindowTitle(qApp->translate("QtHost", "Missing Font File"));
|
||||
msgbox.setWindowModality(Qt::WindowModal);
|
||||
msgbox.setWindowIcon(QtHost::GetAppIcon());
|
||||
msgbox.setIcon(QMessageBox::Critical);
|
||||
msgbox.setTextFormat(Qt::RichText);
|
||||
|
||||
Reference in New Issue
Block a user