diff --git a/ui/pageview.cpp b/ui/pageview.cpp --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -4403,7 +4403,18 @@ foreach( const QString &searchProvider, searchProviders ) { action = new QAction( searchProvider, webShortcutsMenu ); - action->setIcon( QIcon::fromTheme( filterData.iconNameForPreferredSearchProvider( searchProvider ) ) ); + + if (searchProvider == QLatin1String("Google")) + action->setIcon( QIcon::fromTheme( QStringLiteral("im-google") ) ); + else if (searchProvider == QLatin1String("Wikipedia - The Free Encyclopedia")) + action->setIcon( QIcon::fromTheme( QStringLiteral("text-wiki") ) ); + else if (searchProvider == QLatin1String("Yahoo")) + action->setIcon( QIcon::fromTheme( QStringLiteral("im-yahoo") ) ); + else if (searchProvider == QLatin1String("YouTube")) + action->setIcon( QIcon::fromTheme( QStringLiteral("im-youtube") ) ); + else + action->setIcon( QIcon::fromTheme( filterData.iconNameForPreferredSearchProvider( searchProvider ) ) ); + action->setData( filterData.queryForPreferredSearchProvider( searchProvider ) ); connect( action, &QAction::triggered, this, &PageView::slotHandleWebShortcutAction ); webShortcutsMenu->addAction( action );