Skip to content

Commit 0cdce9d

Browse files
author
Mihaela Stoica
authored
Merge pull request xenserver#1311 from GaborApatiNagy/master_CA-232294
CA-232294: Can't connect if an Add Server dialog has been cancelled before
2 parents ba62aa9 + 0c07daf commit 0cdce9d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

XenAdmin/Dialogs/AddServerDialog.Designer.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

XenAdmin/Dialogs/AddServerDialog.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,12 @@ private void labelError_TextChanged(object sender, EventArgs e)
337337
{
338338
pictureBoxError.Visible = labelError.Visible = (labelError.Text != "");
339339
}
340+
341+
private void AddServerDialog_FormClosing(object sender, FormClosingEventArgs e)
342+
{
343+
if (connection != null)
344+
XenConnectionUI.connectionDialogs.Remove(connection);
345+
}
340346
}
341347

342348
public class CachePopulatedEventArgs : EventArgs

0 commit comments

Comments
 (0)