diff options
-rw-r--r-- | svtools/source/contnr/foldertree.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/svtools/source/contnr/foldertree.cxx b/svtools/source/contnr/foldertree.cxx index 63cc7e0c31e3..d59716840549 100644 --- a/svtools/source/contnr/foldertree.cxx +++ b/svtools/source/contnr/foldertree.cxx @@ -32,9 +32,14 @@ void FolderTree::RequestingChildren( SvTreeListEntry* pEntry ) void FolderTree::FillTreeEntry( SvTreeListEntry* pEntry ) { - // fill only empty entries - if( pEntry && GetChildCount( pEntry ) == 0 ) + if( pEntry ) { + while( GetChildCount( pEntry ) > 0 ) + { + SvTreeListEntry* pChild = FirstChild( pEntry ); + GetModel()->Remove( pChild ); + } + ::std::vector< SortingData_Impl* > aContent; ::rtl::Reference< ::svt::FileViewContentEnumerator > |