Skip to content

Commit

Permalink
Merge pull request #432 from zooba/master
Browse files Browse the repository at this point in the history
Fixes #431 Survey/News command crashes VS
  • Loading branch information
zooba committed Jun 15, 2015
2 parents 02ef26e + 380dec1 commit 45aab7e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Common/Product/SharedProject/IdleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ public int FDoIdle(uint grfidlef) {

internal event EventHandler<ComponentManagerEventArgs> OnIdle {
add {
EnsureInit();
_onIdle += value;
_serviceProvider.GetUIThread().Invoke(() => {
EnsureInit();
_onIdle += value;
});
}
remove {
EnsureInit();
_onIdle -= value;
_serviceProvider.GetUIThread().Invoke(() => {
EnsureInit();
_onIdle -= value;
});
}
}

Expand Down

0 comments on commit 45aab7e

Please sign in to comment.