mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
- 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
This commit is contained in:
parent
a24d3793f2
commit
1d75c9dcae
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue