┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-08-14 20:36:54 +0000
committerPeter Penz <[email protected]>2009-08-14 20:36:54 +0000
commit1d75c9dcae51877d15aff53b27e13f542a1bafe0 (patch)
tree33e34e735eabeefd5c589a8a71a1a109a3f0bc3f /src
parenta24d3793f20b645f3b9d60cb56bd7b3fe1c05e2b (diff)
- Fixed issue that the items inside the "Other" category are sorted in a wrong manner.
- Removed redundant code. BUG: 173027 svn path=/trunk/KDE/kdebase/apps/; revision=1011495
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmodel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp
index 3b507a895..503c1086d 100644
--- a/src/dolphinmodel.cpp
+++ b/src/dolphinmodel.cpp
@@ -217,11 +217,7 @@ QVariant DolphinModel::displayRoleData(const QModelIndex& index) const
}
}
- if (!validCategory) {
- retString = validCategory ? *currA : i18nc("@title:group Name", m_others);
- } else {
- retString = *currA;
- }
+ retString = validCategory ? *currA : i18nc("@title:group Name", m_others);
}
}
break;
@@ -393,7 +389,7 @@ QVariant DolphinModel::sortRoleData(const QModelIndex& index) const
retVariant = data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole);
if (retVariant == i18nc("@title:group Name", m_others)) {
// assure that the "Others" group is always the last categorization
- retVariant = QString(QChar(QChar::ReplacementCharacter));
+ retVariant = QString('Z').append(QChar::ReplacementCharacter);
}
break;
}