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.
This commit is contained in:
Peter Penz 2012-03-21 16:51:08 +01:00
parent 982ce7ae20
commit 403aa0bff3

View file

@ -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;