mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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:
parent
982ce7ae20
commit
403aa0bff3
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue