diff --git a/PowerEditor/src/WinControls/ProjectPanel/TreeView.cpp b/PowerEditor/src/WinControls/ProjectPanel/TreeView.cpp index b41bc258..f4b47dd2 100644 --- a/PowerEditor/src/WinControls/ProjectPanel/TreeView.cpp +++ b/PowerEditor/src/WinControls/ProjectPanel/TreeView.cpp @@ -275,7 +275,6 @@ void TreeView::foldRecursively(HTREEITEM hParentItem) const foldRecursively(hItem); fold(hItem); } - fold(hParentItem); } void TreeView::foldAll() const @@ -285,6 +284,7 @@ void TreeView::foldAll() const tvProj = getNextSibling(tvProj)) { foldRecursively(tvProj); + fold(tvProj); } }