windows: Fix event log crash

This commit is contained in:
Hylke Bons 2012-08-11 17:18:07 +01:00
parent a8327440fe
commit a3b5cf2f4d

View file

@ -184,10 +184,12 @@ namespace SparkleShare {
};
Controller.ContentLoadingEvent += delegate {
this.spinner.Start ();
if (this.canvas.Children.Contains (this.web_browser))
this.canvas.Children.Remove (this.web_browser);
Dispatcher.BeginInvoke ((Action) delegate {
this.spinner.Start ();
if (this.canvas.Children.Contains (this.web_browser))
this.canvas.Children.Remove (this.web_browser);
});
};
}