From 034f4721638b3052869ddc59cc53ecca10624650 Mon Sep 17 00:00:00 2001 From: Mihaela Stoica Date: Mon, 13 Aug 2018 14:13:30 +0100 Subject: [PATCH] CA-286882: Check for page visibilty before calling HidePage Signed-off-by: Mihaela Stoica --- XenAdmin/MainWindow.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/XenAdmin/MainWindow.cs b/XenAdmin/MainWindow.cs index d506618df..fb687c70a 100755 --- a/XenAdmin/MainWindow.cs +++ b/XenAdmin/MainWindow.cs @@ -3031,18 +3031,24 @@ namespace XenAdmin switch (submodeItem.SubMode) { case NotificationsSubMode.Alerts: + if (updatesPage.Visible) + updatesPage.HidePage(); + if (eventsPage.Visible) + eventsPage.HidePage(); alertPage.ShowPage(); - updatesPage.HidePage(); - eventsPage.HidePage(); break; case NotificationsSubMode.Updates: - alertPage.HidePage(); + if (alertPage.Visible) + alertPage.HidePage(); + if (eventsPage.Visible) + eventsPage.HidePage(); updatesPage.ShowPage(); - eventsPage.HidePage(); break; case NotificationsSubMode.Events: - alertPage.HidePage(); - updatesPage.HidePage(); + if (alertPage.Visible) + alertPage.HidePage(); + if (updatesPage.Visible) + updatesPage.HidePage(); eventsPage.ShowPage(); break; }