From 403aa0bff3aecdd9cc94308a497590dcb569f597 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 21 Mar 2012 16:51:08 +0100 Subject: [PATCH] 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. --- src/kitemviews/kfileitemmodel.cpp | 1 - 1 file changed, 1 deletion(-) 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; -- 2.47.3