┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-06 12:59:37 +0200
committerPeter Penz <[email protected]>2012-05-06 13:00:42 +0200
commitd4173443ab6b1da6a2144be7376f79ab4940a591 (patch)
tree7ca62186b000c150f4feb3161aca5a7b31578e05 /src
parent9419f0f3a5fbf7b8a96163b7ab25cf0541ff6127 (diff)
Fix sorting issues for Nepomuk-roles
Just use a string-comparison as default-compare.
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index c16820fa3..8f8b80c5a 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -1357,22 +1357,13 @@ int KFileItemModel::sortRoleCompare(const ItemData* a, const ItemData* b) const
break;
}
- case PermissionsRole:
- case OwnerRole:
- case GroupRole:
- case TypeRole:
- case DestinationRole:
- case PathRole:
- case CommentRole:
- case TagsRole: {
+ default: {
const QByteArray role = roleForType(m_sortRole);
result = QString::compare(a->values.value(role).toString(),
b->values.value(role).toString());
break;
}
- default:
- break;
}
if (result != 0) {