Rename Parents -> Ancestors
This commit is contained in:
parent
3da126edcc
commit
51102b2152
3 changed files with 3 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
activeContainer.KeywordFilter = "";
|
||||
|
||||
// If the new container is an ancestor of the active container we need to Dispose everyone up to that point
|
||||
if (activeContainer.Parents().Where(p => p == newContainer).Any())
|
||||
if (activeContainer.Ancestors().Where(p => p == newContainer).Any())
|
||||
{
|
||||
var context = activeContainer;
|
||||
while (context != newContainer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue