Commit f12345a5 authored by Daniel Faust's avatar Daniel Faust

Don't try to change the icon of the "sort" action menu if it doesn't exist

BUG: 255819
FIXED-IN: 4.10.4
REVIEW: 109966
parent 24609e78
......@@ -528,8 +528,10 @@ void DolphinViewActionHandler::slotSortRoleChanged(const QByteArray& role)
if (action) {
action->setChecked(true);
QAction* sortByMenu = m_actionCollection->action("sort");
sortByMenu->setIcon(KIcon(action->icon()));
if (!action->icon().isNull()) {
QAction* sortByMenu = m_actionCollection->action("sort");
sortByMenu->setIcon(KIcon(action->icon()));
}
}
}
......
Markdown is supported
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