CP-15825: Fix error where the About dialog pops up when a connection status changes

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2016-02-04 09:54:42 +00:00
parent a9b36d2e36
commit 093feba229

View File

@ -614,7 +614,7 @@ namespace XenAdmin
private void Connection_ConnectionStateChangedOnStartup(object sender, EventArgs e) private void Connection_ConnectionStateChangedOnStartup(object sender, EventArgs e)
{ {
IXenConnection c = (IXenConnection)sender; IXenConnection c = (IXenConnection)sender;
c.CachePopulated -= Connection_ConnectionStateChangedOnStartup; c.ConnectionStateChanged -= Connection_ConnectionStateChangedOnStartup;
Program.Invoke(Program.MainWindow, delegate Program.Invoke(Program.MainWindow, delegate
{ {