mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Merge pull request #1084 from GaborApatiNagy/master_CA-213728
CA-213728: Going to Home Server tab can change home server
This commit is contained in:
commit
54849d4f5e
1
XenAdmin/Controls/AffinityPicker.Designer.cs
generated
1
XenAdmin/Controls/AffinityPicker.Designer.cs
generated
@ -109,6 +109,7 @@ namespace XenAdmin.Controls
|
||||
this.ReasonColumn});
|
||||
resources.ApplyResources(this.ServersGridView, "ServersGridView");
|
||||
this.ServersGridView.Name = "ServersGridView";
|
||||
this.ServersGridView.VisibleChanged += new System.EventHandler(this.ServersGridView_VisibleChanged);
|
||||
//
|
||||
// ImageColumn
|
||||
//
|
||||
|
@ -216,6 +216,17 @@ namespace XenAdmin.Controls
|
||||
else
|
||||
ServersGridView.Select();
|
||||
}
|
||||
|
||||
bool selectedOnVisibleChanged = false;
|
||||
|
||||
private void ServersGridView_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!selectedOnVisibleChanged)
|
||||
{
|
||||
selectedOnVisibleChanged = true;
|
||||
SelectSomething();//CA-213728
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal class ServerGridRow : DataGridViewExRow
|
||||
|
Loading…
Reference in New Issue
Block a user