Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
eafe63b5
Commit
eafe63b5
authored
Aug 18, 2022
by
Eugene Popov
🇺🇦
Committed by
Felix Ernst
Aug 21, 2022
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/kitemviews/kfileitemmodel.cpp
View file @
eafe63b5
...
...
@@ -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
(
item
.
name
()).
suffix
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment