diff options
| author | Eugene Popov <[email protected]> | 2022-04-20 17:30:46 +0300 |
|---|---|---|
| committer | Eugene Popov <[email protected]> | 2022-04-26 13:42:04 +0300 |
| commit | e6f142e5e7563ebbcdc1bdf84c9ce87f11e01835 (patch) | |
| tree | 466862c5aaee5aab15953f84762f257c9e20ade7 /src/views/dolphinviewactionhandler.cpp | |
| parent | c88ce580e6ad720342e7efec2c7e24d8362b648c (diff) | |
Add the ability to sort by file extension
Currently, Dolphin doesn't have the ability to sort by file extension (sorting by type means that files will be sorted by mimetype but not by extension). This MR fixes this shortcoming.
BUG: 429579
Diffstat (limited to 'src/views/dolphinviewactionhandler.cpp')
| -rw-r--r-- | src/views/dolphinviewactionhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index c02d7856b..1c5298703 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -664,7 +664,7 @@ void DolphinViewActionHandler::slotSortRoleChanged(const QByteArray& role) QAction* descending = m_actionCollection->action(QStringLiteral("descending")); QAction* ascending = m_actionCollection->action(QStringLiteral("ascending")); - if (role == "text" || role == "type" || role == "tags" || role == "comment") { + if (role == "text" || role == "type" || role == "extension" || role == "tags" || role == "comment") { descending->setText(i18nc("Sort descending", "Z-A")); ascending->setText(i18nc("Sort ascending", "A-Z")); } else if (role == "size") { |
