diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp index 47b75f1c2b..8f427adf16 100644 --- a/src/dolphinmodel.cpp +++ b/src/dolphinmodel.cpp @@ -83,17 +83,17 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const QVariant data = theIndex.model()->data(theIndex, Qt::DisplayRole); if (data.toString().size()) { if (!item.isHidden() && data.toString().at(0).isLetter()) - retString = data.toString().toUpper().at(0); + retString = data.toString().at(0).toUpper(); else if (item.isHidden() && data.toString().at(0) == '.' && data.toString().at(1).isLetter()) - retString = data.toString().toUpper().at(1); + retString = data.toString().at(1).toUpper(); else if (item.isHidden() && data.toString().at(0) == '.' && !data.toString().at(1).isLetter()) retString = i18nc("@title:group Name", "Others"); else if (item.isHidden() && data.toString().at(0) != '.') - retString = data.toString().toUpper().at(0); + retString = data.toString().at(0).toUpper(); else if (item.isHidden()) - retString = data.toString().toUpper().at(0); + retString = data.toString().at(0).toUpper(); else { bool validCategory = false;