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:
Konstantina Chremmou 2020-01-27 23:07:31 +00:00 committed by Mihaela Stoica
parent 576d2d5a83
commit 6caa4199cd
2 changed files with 0 additions and 7 deletions

View File

@ -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);

View File

@ -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);
}
}
}