Fix check-in for [CA-121672] so that a standalone server uses the properties dialog

for the server, not the one for the secret pool
# HG changeset patch
# User Stephen Turner <stephen.turner@citrix.com>
# Date 1384881428 0
#      Tue Nov 19 17:17:08 2013 +0000
# Node ID 030ebb6e2f6964a4dbf9d5602c69cb23fcc0cbdb
# Parent  370811ffe245c8ea57ebd6f406711f8e1fee5a05

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2013-12-11 10:20:33 +00:00
parent bae0d9ab8f
commit c5e37d6ee3

View File

@ -144,9 +144,9 @@ namespace XenAdmin.Controls
private void editPlacementPolicyButton_Click(object sender, System.EventArgs e)
{
var pool = Helpers.GetPoolOfOne(xenObject.Connection);
var pool = Helpers.GetPool(xenObject.Connection);
using (PropertiesDialog propertiesDialog = new PropertiesDialog(pool))
using (PropertiesDialog propertiesDialog = new PropertiesDialog(pool ?? xenObject))
{
propertiesDialog.SelectPage(propertiesDialog.PoolGpuEditPage);
propertiesDialog.ShowDialog(this);