Commit 4f1091f1 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Kickoff] Use KFilePlacesModel groups

This groups entries in Places under the same categories (Places, Recently Saved,
Remote, Devices, etc) as in all other places where Places are shown

Differential Revision:
parent 1cdb7ae4
......@@ -234,11 +234,7 @@ QVariant ComputerModel::data(const QModelIndex &index, int role) const
} else if (role == Kicker::UrlRole) {
return m_filteredPlacesModel->url(sourceIndex);
} else if (role == Kicker::GroupRole) {
if (m_filteredPlacesModel->isDevice(sourceIndex)) {
return i18n("Removable Storage");
} else {
return i18n("Places");
} else if (role == Qt::DisplayRole || role == Qt::DecorationRole) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment