┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-12-25 22:34:45 +0100
committerPeter Penz <[email protected]>2011-12-25 22:37:44 +0100
commit6212ac6053705cad16efda10415421681f575755 (patch)
tree5cea8d3666b27da29f25dcb50ddbf496937a628b /src
parenta237f42ee3f4e5d190d5553637f4fa2ffbe5bc7c (diff)
Fix grouping issue
When switching to a group that is not shown currently, the group headers won't be updated. The root-cause was that the m_groups-cache must be reset when the roles have been changed. CCBUG: 289654
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index 0d851dcd9..3fd40e9d4 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -367,6 +367,7 @@ void KFileItemModel::setRoles(const QSet<QByteArray>& roles)
}
}
+ m_groups.clear();
resetRoles();
QSetIterator<QByteArray> it(roles);