[CA-121672] Fixed: The host's "edit placement policy" button does not work in a pool.

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2013-11-19 15:50:58 +00:00
parent 4289972b1b
commit b40714bf6c

View File

@ -31,6 +31,7 @@
using System.ComponentModel;
using System.Windows.Forms;
using XenAdmin.Core;
using XenAdmin.Dialogs;
using XenAPI;
@ -143,7 +144,9 @@ namespace XenAdmin.Controls
private void editPlacementPolicyButton_Click(object sender, System.EventArgs e)
{
using (PropertiesDialog propertiesDialog = new PropertiesDialog(xenObject))
var pool = Helpers.GetPoolOfOne(xenObject.Connection);
using (PropertiesDialog propertiesDialog = new PropertiesDialog(pool))
{
propertiesDialog.SelectPage(propertiesDialog.PoolGpuEditPage);
propertiesDialog.ShowDialog(this);