From: Frank Reininghaus Date: Tue, 20 Dec 2011 01:03:31 +0000 (+0100) Subject: KFileItemModel: Always use upper case letters to group by name X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/a3c41997db62e9af2a89b23a61bc7dda75aa1e58?ds=sidebyside KFileItemModel: Always use upper case letters to group by name This fixes the following problems: 1. In a folder containing the items ~a and b, the first group, containing ~a, is named "Others". 2. In a folder containing the items a, ~b, ~c, and ~d, the first group "A" contains a and ~b, and the other two items are in the group "Others". --- diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 2e583d05e..748a9bae1 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -1556,7 +1556,7 @@ QList > KFileItemModel::nameRoleGroups() const // Use the first character of the name as group indication QChar newFirstChar = name.at(0).toUpper(); if (newFirstChar == QLatin1Char('~') && name.length() > 1) { - newFirstChar = name.at(1); + newFirstChar = name.at(1).toUpper(); } if (firstChar != newFirstChar) {