From a3c41997db62e9af2a89b23a61bc7dda75aa1e58 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Tue, 20 Dec 2011 02:03:31 +0100 Subject: [PATCH] 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". --- src/kitemviews/kfileitemmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3