diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2016-11-30 14:20:36 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2017-02-16 18:52:38 +0300 |
commit | 7af6a3d5ba2c362837d03165eff395b6e9394391 (patch) | |
tree | 0a121a480e265e20e7b8c753dc98d18eba1d5395 /main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs | |
parent | 5a24e68fc4d6c2f2e95be850e537245074ff21a6 (diff) |
Fix threading issue in PO editor widget
Diffstat (limited to 'main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs index 8907f4414a..de0f8557f1 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs @@ -1138,9 +1138,11 @@ namespace MonoDevelop.Gettext } if (!CompareTasks (tasks, currentTasks)) { - ClearTasks (); - currentTasks = tasks; - TaskService.Errors.AddRange (tasks); + Runtime.RunInMainThread (() => { + ClearTasks (); + currentTasks = tasks; + TaskService.Errors.AddRange (tasks); + }); } } |