mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Merge pull request #52 from MihaelaStoica/CA-126455
CA-126455: VM Properties dialog: Fixed the bug where the home server val...
This commit is contained in:
commit
5d36772c81
@ -36,7 +36,6 @@ namespace XenAdmin.SettingsPanels
|
||||
//
|
||||
resources.ApplyResources(this.picker, "picker");
|
||||
this.picker.Name = "picker";
|
||||
this.picker.VisibleChanged += new System.EventHandler(this.picker_VisibleChanged);
|
||||
//
|
||||
// HomeServerEditPage
|
||||
//
|
||||
|
@ -135,17 +135,5 @@ namespace XenAdmin.SettingsPanels
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void picker_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (vm != null)
|
||||
{
|
||||
Host currentAffinity = vm.Connection.Resolve(vm.affinity);
|
||||
picker.SetAffinity(vm.Connection, currentAffinity,
|
||||
vm.HasNoDisksAndNoLocalCD
|
||||
? null
|
||||
: vm.GetStorageHost(false));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user