mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 23:39:51 +01:00
CA-328267: Only remove connection dialogs when they close, not when the AddServerDialog closes.
Otherwise the connection dialog remains open even after a connection that required entering a new password succeeded. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
576d2d5a83
commit
6caa4199cd
1
XenAdmin/Dialogs/AddServerDialog.Designer.cs
generated
1
XenAdmin/Dialogs/AddServerDialog.Designer.cs
generated
@ -185,7 +185,6 @@ 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);
|
||||
|
@ -333,11 +333,5 @@ namespace XenAdmin.Dialogs
|
||||
{
|
||||
pictureBoxError.Visible = labelError.Visible = (labelError.Text != "");
|
||||
}
|
||||
|
||||
private void AddServerDialog_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (connection != null)
|
||||
XenConnectionUI.connectionDialogs.Remove(connection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user