┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-03-21 16:51:08 +0100
committerPeter Penz <[email protected]>2012-03-21 16:54:02 +0100
commit403aa0bff3aecdd9cc94308a497590dcb569f597 (patch)
treeb838a168a5469f109979626244dc1ac5cc42d799 /src
parent982ce7ae203de9142ca3e79e6fdeacd003fb0414 (diff)
KFileItemModel: Fix triggering of wrong assertion
When switching from the details-mode of a search-view into any other mode, the m_expandedParentsCountRoot is set to ForceExpandedParentsCountRoot.
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index 7a4323fea..efc7b326e 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -1084,7 +1084,6 @@ void KFileItemModel::removeExpandedItems()
// The m_expandedParentsCountRoot may not get reset before all items with
// a bigger count have been removed.
- Q_ASSERT(m_expandedParentsCountRoot >= 0);
removeItems(expandedItems);
m_expandedParentsCountRoot = UninitializedExpandedParentsCountRoot;