SEBWIN-226: Ensured all message boxes shown by the runtime controller have the correct parent window.
This commit is contained in:
parent
4a75ce5f6d
commit
ccfbfe7a0b
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue