Fix:
- if (content.Name.ToLowerInvariant().Contains(search))
+ // do not add root element to search results, see bug 1944070
+ if (content.Type != ContentType.Root && content.Name.ToLowerInvariant().Contains(search)) finds.Add(new SearchResult(content, path));
Pull Request for the fix: https:/ /github. com/openrails/ openrails/ pull/934
Fix: Name.ToLowerInv ariant( ).Contains( search) ) Name.ToLowerInv ariant( ).Contains( search) )
finds. Add(new SearchResult( content, path));
- if (content.
+ // do not add root element to search results, see bug 1944070
+ if (content.Type != ContentType.Root && content.