CA-298693: Going back to the Template tab of the NewVM wizard should not cause a different template to be selected, even if the template was selected outside of the form it should only initially set it.

Signed-off-by: Aaron Robson <aaron.robson@citrix.com>
This commit is contained in:
Aaron Robson 2018-10-05 15:04:33 +01:00 committed by Konstantina Chremmou
parent edbf616ef8
commit 3bd0a489f2

View File

@ -60,8 +60,10 @@ namespace XenAdmin.Wizards.NewVMWizard
protected override void PageLoadedCore(PageLoadedDirection direction)
{
if (!templatesLoaded)
PopulateTemplatesBox();
if (templatesLoaded)
return;
PopulateTemplatesBox();
templatesLoaded = true;
if (m_selectedTemplate == null)