From: Peter Penz Date: Wed, 21 Mar 2012 15:51:08 +0000 (+0100) Subject: KFileItemModel: Fix triggering of wrong assertion X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/403aa0bff3aecdd9cc94308a497590dcb569f597 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. --- 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;