From: Peter Penz Date: Sun, 4 Jan 2009 18:35:32 +0000 (+0000) Subject: Only expand the tree view if it has an enabled 'itemsExpandable' property. If this... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/59ac1d10ae41208c024048111d946a0d149c7716?ds=inline Only expand the tree view if it has an enabled 'itemsExpandable' property. If this is not the case, the folder will get opened like in the icon view by exchanging the whole content. CCBUG: 178630 svn path=/trunk/KDE/kdebase/apps/; revision=905632 --- diff --git a/src/folderexpander.cpp b/src/folderexpander.cpp index 93ab67895..50f2bcf91 100644 --- a/src/folderexpander.cpp +++ b/src/folderexpander.cpp @@ -118,7 +118,7 @@ void FolderExpander::autoExpandTimeout() if (itemToExpand.isDir()) { QTreeView* treeView = qobject_cast(m_view); - if (treeView != 0) { + if ((treeView != 0) && treeView->itemsExpandable()) { // Toggle expanded state of this directory. treeView->setExpanded(proxyIndexToExpand, !treeView->isExpanded(proxyIndexToExpand)); }