Add non-const version of Group::groupsRecursive().

This commit is contained in:
Felix Geyer 2015-01-11 16:20:24 +01:00
parent 835c411d12
commit 33650c4a04
4 changed files with 20 additions and 2 deletions

View file

@ -85,7 +85,10 @@ void EntryModel::setEntryList(const QList<Entry*>& entries)
Q_FOREACH (Database* db, databases) {
Q_ASSERT(db);
m_allGroups.append(db->rootGroup()->groupsRecursive(true));
Q_FOREACH (const Group* group, db->rootGroup()->groupsRecursive(true)) {
m_allGroups.append(group);
}
if (db->metadata()->recycleBin()) {
m_allGroups.removeOne(db->metadata()->recycleBin());
}