diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-07-22 16:42:47 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-24 12:29:04 +0200 |
commit | 638e527bfaae76fc4b32fa17c0bd576378a8a479 (patch) | |
tree | dadd74c3c7fc2518c9980f79ad2f948400a07622 /svtools/source/contnr/foldertree.cxx | |
parent | 62f77f52e9cb5e4825a269fa377af696235d0d17 (diff) |
reload content while expanding node
Change-Id: I7ce281ea4e2d5c5c9fc0b2b3f315defc14364df3
Diffstat (limited to 'svtools/source/contnr/foldertree.cxx')
-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 > |