Commit d3f427a6 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Don't force icon for preferred search tool action if one is manually configured

The code reads the icon from the relevant application and uses that for the action

When the user has configured one manually in the toolbar settings that is overridden

To avoid this only change the icon if it is the default one (search)

BUG: 442815
parent f8c292c5
Pipeline #82191 passed with stage
in 4 minutes and 59 seconds
......@@ -1011,7 +1011,11 @@ void DolphinMainWindow::updateOpenPreferredSearchToolAction()
if (tool) {
openPreferredSearchTool->setText(i18nc("@action:inmenu Tools", "Open %1", tool->text()));
// Only override with the app icon if it is the default, i.e. the user hasn't configured one manually
if (openPreferredSearchTool->icon().name() == QLatin1String("search")) {
} else {
// still visible in Shortcuts configuration window
Supports Markdown
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