]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix grouping issue
authorPeter Penz <peter.penz19@gmail.com>
Sun, 25 Dec 2011 21:34:45 +0000 (22:34 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 25 Dec 2011 21:37:44 +0000 (22:37 +0100)
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

src/kitemviews/kfileitemmodel.cpp

index 0d851dcd9657ed6e0b6a6e82701797784d103f96..3fd40e9d453c35c2949f2182fba2062655430322 100644 (file)
@@ -367,6 +367,7 @@ void KFileItemModel::setRoles(const QSet<QByteArray>& roles)
         }
     }
 
+    m_groups.clear();
     resetRoles();
 
     QSetIterator<QByteArray> it(roles);