mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Fix sorting by file extension
Folders don't have extensions
This commit is contained in:
parent
b5de7d7945
commit
eafe63b5f4
|
@ -1801,7 +1801,7 @@ QHash<QByteArray, QVariant> KFileItemModel::retrieveData(const KFileItem& item,
|
||||||
data.insert(sharedValue("text"), item.text());
|
data.insert(sharedValue("text"), item.text());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_requestRole[ExtensionRole]) {
|
if (m_requestRole[ExtensionRole] && !isDir) {
|
||||||
data.insert(sharedValue("extension"), QFileInfo(item.name()).suffix());
|
data.insert(sharedValue("extension"), QFileInfo(item.name()).suffix());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue