SEBWIN-226: Ensured all message boxes shown by the runtime controller have the correct parent window.

This commit is contained in:
dbuechel 2019-04-02 07:53:00 +02:00
parent 4a75ce5f6d
commit ccfbfe7a0b

View file

@ -306,7 +306,7 @@ namespace SafeExamBrowser.Runtime
StopSession();
}
messageBox.Show(TextKey.MessageBox_ApplicationError, TextKey.MessageBox_ApplicationErrorTitle, icon: MessageBoxIcon.Error);
messageBox.Show(TextKey.MessageBox_ApplicationError, TextKey.MessageBox_ApplicationErrorTitle, icon: MessageBoxIcon.Error, parent: runtimeWindow);
shutdown.Invoke();
}
@ -319,7 +319,7 @@ namespace SafeExamBrowser.Runtime
StopSession();
}
messageBox.Show(TextKey.MessageBox_ApplicationError, TextKey.MessageBox_ApplicationErrorTitle, icon: MessageBoxIcon.Error);
messageBox.Show(TextKey.MessageBox_ApplicationError, TextKey.MessageBox_ApplicationErrorTitle, icon: MessageBoxIcon.Error, parent: runtimeWindow);
shutdown.Invoke();
}