┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-12-25 22:34:45 +0100
committerPeter Penz <[email protected]>2011-12-25 22:38:34 +0100
commit4dc571401662e6f8ac8c90aa2d74c071c9d73076 (patch)
treead8a0014f5c6c25cc63b0ae352877b711aaa8e8f /src/kitemviews
parentee26791cee4f241fe42c7e2d5458caf4a19dd615 (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/kitemviews')
-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);