From ccfbfe7a0b7287b5d4091f470fb4068de3333420 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Tue, 2 Apr 2019 07:53:00 +0200 Subject: [PATCH] SEBWIN-226: Ensured all message boxes shown by the runtime controller have the correct parent window. --- SafeExamBrowser.Runtime/RuntimeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.Runtime/RuntimeController.cs b/SafeExamBrowser.Runtime/RuntimeController.cs index a0d87a5a..f18a8bc6 100644 --- a/SafeExamBrowser.Runtime/RuntimeController.cs +++ b/SafeExamBrowser.Runtime/RuntimeController.cs @@ -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(); }