Commit 76776c6b 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
(cherry picked from commit 1b08f305)
parent b1b2eee8
......@@ -426,6 +426,12 @@ void SessionController::updateWebSearchMenu()
// Is 'Enable Web shortcuts' checked in System Settings?
KSharedConfigPtr kuriikwsConfig = KSharedConfig::openConfig(QStringLiteral("kuriikwsfilterrc"));
if (!kuriikwsConfig->group("General").readEntry("EnableWebShortcuts", true)) {
KUriFilterData filterData(searchText);
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