always reload reused children on structure changed

This commit is contained in:
Sergey Malenkov
2017-10-10 18:51:46 +03:00
parent 77449b758d
commit 67c0496dc4
@@ -635,7 +635,7 @@ public final class AsyncTreeModel extends AbstractTreeModel implements Disposabl
}
else {
list.add(found);
if (!found.isLoadingRequired() && !removed.containsKey(found.object)) {
if (!found.isLoadingRequired() && (deep || !removed.containsKey(found.object))) {
reload.add(found.object); // reload reused children if they are inserted
}
}