Commit 3cd77861 authored by Christian Mollekopf's avatar Christian Mollekopf Committed by Sandro Knauß
Browse files

CalendarSelection: Sort search folders at the end.

(cherry picked from commit 38e28fd12decc0ded373794fee25bea526b4b25d)
parent 837a48ce
......@@ -269,6 +269,10 @@ class SortProxyModel : public QSortFilterProxyModel
if (index.data(IsSearchResultRole).toBool()) {
score += 2;
}
//Search collection
if (index.data(Akonadi::EntityTreeModel::CollectionIdRole).toLongLong() == 1) {
score += 3;
}
return score;
}
......
Markdown is supported
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