┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2019-09-09 07:17:40 -0600
committerNate Graham <[email protected]>2019-09-09 07:17:40 -0600
commit4c9952683a7f977402353f1b9a3fd5271e51740e (patch)
treea0e9e8a2a4011cc79200edbb3ae87a180ff2eb93
parent81065795b78e06ec679ec0589fba7082e777ef2a (diff)
parent60d6a3bdbcd44360e1c6ae1c82239ecf6d60ded7 (diff)
Merge branch 'Applications/19.08'
-rw-r--r--src/views/dolphinviewactionhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp
index 7086ab627..4aa59911b 100644
--- a/src/views/dolphinviewactionhandler.cpp
+++ b/src/views/dolphinviewactionhandler.cpp
@@ -637,9 +637,10 @@ void DolphinViewActionHandler::slotSortTriggered(QAction* action)
// and several sub-menus. Because of this they don't have a common
// action-group that assures an exclusive toggle-state between the main-menu
// actions and the sub-menu-actions. If an action gets checked, it must
- // be assured that all other actions get unchecked.
+ // be assured that all other actions get unchecked, except the ascending/
+ // descending actions
QAction* sortByMenu = m_actionCollection->action(QStringLiteral("sort"));
- foreach (QAction* groupAction, sortByMenu->menu()->actions()) {
+ for (QAction *groupAction : qAsConst(m_sortByActions)) {
KActionMenu* actionMenu = qobject_cast<KActionMenu*>(groupAction);
if (actionMenu) {
foreach (QAction* subAction, actionMenu->menu()->actions()) {