From 59ac1d10ae41208c024048111d946a0d149c7716 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 4 Jan 2009 18:35:32 +0000 Subject: [PATCH] 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 --- src/folderexpander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.47.3