clear the selection when loading the sub tree

svn path=/trunk/KDE/kdebase/apps/; revision=805603
This commit is contained in:
Peter Penz 2008-05-08 21:12:38 +00:00
parent fc97fa250d
commit 9d596ce883

View file

@ -210,6 +210,8 @@ void TreeViewSidebarPage::expandToLeafDir()
void TreeViewSidebarPage::loadSubTree()
{
m_treeView->selectionModel()->clearSelection();
if (m_leafDir.isParentOf(m_dirLister->url())) {
// The leaf directory is not a child of the base URL, hence
// no sub directory must be loaded or selected.