diff options
-rw-r--r-- | main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs index 3fd986f72c..9a4a00f550 100644 --- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs +++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs @@ -253,10 +253,10 @@ namespace MonoDevelop.CSharp void UpdateOwnerProjects (IEnumerable<DotNetProject> allProjects) { - if (DocumentContext == null) { - return;//This can happen if this object is disposed - } Editor.RunWhenRealized (() => {
+ if (DocumentContext == null) { + return;//This can happen if this object is disposed + } var projects = new HashSet<DotNetProject> (allProjects.Where (p => p.IsFileInProject (DocumentContext.Name)));
if (ownerProjects == null || !projects.SetEquals (ownerProjects)) {
SetOwnerProjects (projects.OrderBy (p => p.Name).ToList ());
|