From 795b12cdcdddec7083fe021b3de5da50d0ee5cc8 Mon Sep 17 00:00:00 2001 From: Sharath Babu Date: Wed, 10 Aug 2016 12:04:11 +0530 Subject: [PATCH] CA-213500: Revert To, Actions and Delete buttons are enabled even if there is no manual snapshot. Signed-off-by: Sharath Babu --- XenAdmin/TabPages/SnapshotsPage.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/XenAdmin/TabPages/SnapshotsPage.cs b/XenAdmin/TabPages/SnapshotsPage.cs index 8bf746afb..4ad1cd762 100644 --- a/XenAdmin/TabPages/SnapshotsPage.cs +++ b/XenAdmin/TabPages/SnapshotsPage.cs @@ -1115,7 +1115,11 @@ namespace XenAdmin.TabPages { VM snap = (VM)item.Tag; if (snap != null && snap.is_a_snapshot) - snapshots.Add(snap); + { + if(!(snap.is_snapshot_from_vmpp || snap.is_vmss_snapshot) || toolStripMenuItemScheduledSnapshots.Checked) + snapshots.Add(snap); + } + } return snapshots; } @@ -1129,7 +1133,10 @@ namespace XenAdmin.TabPages { VM snap = (VM)row.Tag; if (snap != null && snap.is_a_snapshot) - snapshots.Add(snap); + { + if (!(snap.is_snapshot_from_vmpp || snap.is_vmss_snapshot) || toolStripMenuItemScheduledSnapshots.Checked) + snapshots.Add(snap); + } } return snapshots; }