┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-01-04 18:35:32 +0000
committerPeter Penz <[email protected]>2009-01-04 18:35:32 +0000
commit59ac1d10ae41208c024048111d946a0d149c7716 (patch)
tree0ea756d817d5fabd15fac0b074f1f3232fbb9dd2 /src
parent291c9219a217b982220f4118d37ac8767454c101 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/folderexpander.cpp2
1 files changed, 1 insertions, 1 deletions
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<QTreeView*>(m_view);
- if (treeView != 0) {
+ if ((treeView != 0) && treeView->itemsExpandable()) {
// Toggle expanded state of this directory.
treeView->setExpanded(proxyIndexToExpand, !treeView->isExpanded(proxyIndexToExpand));
}