mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
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
This commit is contained in:
parent
38bb5f1547
commit
3f108bd7fa
|
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue