Verified Commit eeb78342 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳
Browse files

Fix warning intruduced by search online feature

parent 49c7f67f
......@@ -129,7 +129,7 @@ WebEngineView {
}
Controls.MenuItem {
enabled: contextMenu.request != null && contextMenu.request.selectedText
text: contextMenu.request.selectedText ? i18n("Search online for '%1'", contextMenu.request.selectedText) : i18n("Search online")
text: contextMenu.request && contextMenu.request.selectedText ? i18n("Search online for '%1'", contextMenu.request.selectedText) : i18n("Search online")
onTriggered: tabsModel.newTab(UrlUtils.urlFromUserInput(BrowserManager.searchBaseUrl + contextMenu.request.selectedText));
}
Controls.MenuItem {
......
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