Commit 1b08f305 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Do not show "Search for" if web shortcuts are disabled

Before showing menu, check System Settings to see if user has disabled
"Enable Web shortcuts".

BUG: 417048
parent b35a13e5
......@@ -439,6 +439,12 @@ void SessionController::updateWebSearchMenu()
return;
}
// Is 'Enable Web shortcuts' checked in System Settings?
KSharedConfigPtr kuriikwsConfig = KSharedConfig::openConfig(QStringLiteral("kuriikwsfilterrc"));
if (!kuriikwsConfig->group("General").readEntry("EnableWebShortcuts", true)) {
return;
}
KUriFilterData filterData(searchText);
filterData.setSearchFilteringOptions(KUriFilterData::RetrievePreferredSearchProvidersOnly);
......
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