mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +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,10 +528,12 @@ void DolphinViewActionHandler::slotSortRoleChanged(const QByteArray& role)
|
|||
if (action) {
|
||||
action->setChecked(true);
|
||||
|
||||
if (!action->icon().isNull()) {
|
||||
QAction* sortByMenu = m_actionCollection->action("sort");
|
||||
sortByMenu->setIcon(KIcon(action->icon()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DolphinViewActionHandler::slotZoomLevelChanged(int current, int previous)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue