Commit eafe63b5 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Felix Ernst
Browse files

Fix sorting by file extension

Folders don't have extensions
parent b5de7d79
Pipeline #220839 passed with stage
in 9 minutes and 19 seconds
......@@ -1801,7 +1801,7 @@ QHash<QByteArray, QVariant> KFileItemModel::retrieveData(const KFileItem& item,
data.insert(sharedValue("text"), item.text());
if (m_requestRole[ExtensionRole]) {
if (m_requestRole[ExtensionRole] && !isDir) {
data.insert(sharedValue("extension"), QFileInfo(;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment