mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
Merge pull request #1311 from GaborApatiNagy/master_CA-232294
CA-232294: Can't connect if an Add Server dialog has been cancelled before
This commit is contained in:
commit
0cdce9dfaf
1
XenAdmin/Dialogs/AddServerDialog.Designer.cs
generated
1
XenAdmin/Dialogs/AddServerDialog.Designer.cs
generated
@ -186,6 +186,7 @@ namespace XenAdmin.Dialogs
|
||||
this.CancelButton = this.CancelButton2;
|
||||
this.Controls.Add(this.tableLayoutPanelType);
|
||||
this.Name = "AddServerDialog";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.AddServerDialog_FormClosing);
|
||||
this.Load += new System.EventHandler(this.AddServerDialog_Load);
|
||||
this.Shown += new System.EventHandler(this.AddServerDialog_Shown);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
|
@ -337,6 +337,12 @@ namespace XenAdmin.Dialogs
|
||||
{
|
||||
pictureBoxError.Visible = labelError.Visible = (labelError.Text != "");
|
||||
}
|
||||
|
||||
private void AddServerDialog_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (connection != null)
|
||||
XenConnectionUI.connectionDialogs.Remove(connection);
|
||||
}
|
||||
}
|
||||
|
||||
public class CachePopulatedEventArgs : EventArgs
|
||||
|
Loading…
Reference in New Issue
Block a user