┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-12-20 02:03:31 +0100
committerFrank Reininghaus <[email protected]>2011-12-20 02:03:31 +0100
commita3c41997db62e9af2a89b23a61bc7dda75aa1e58 (patch)
tree6d2959786d6799656124d9ee23109f3daeb7b086 /src
parent404d54fc4a8f5151c34bcd8d6417be757212ad98 (diff)
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".
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp2
1 files changed, 1 insertions, 1 deletions
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<QPair<int, QVariant> > 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) {