diff --git a/resources/text/CHANGELOG b/resources/text/CHANGELOG index 0619b939f..0348f058f 100755 --- a/resources/text/CHANGELOG +++ b/resources/text/CHANGELOG @@ -1,4 +1,4 @@ -3.1.0 +3.1.1 ————— !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @@ -14,6 +14,7 @@ Added: Fixed: ▪ Fixed little problem with feed list hiding. (bug #163) +▪ Web browser search context menu item now trims the searched string. (bug #168) 3.1.0 ————— diff --git a/src/network-web/webview.cpp b/src/network-web/webview.cpp index b582657b9..c0be7b900 100755 --- a/src/network-web/webview.cpp +++ b/src/network-web/webview.cpp @@ -21,6 +21,7 @@ #include "miscellaneous/settings.h" #include "miscellaneous/skinfactory.h" #include "miscellaneous/iconfactory.h" +#include "miscellaneous/textfactory.h" #include "network-web/webpage.h" #include "network-web/webfactory.h" #include "gui/messagebox.h" @@ -330,7 +331,7 @@ void WebView::popupContextMenu(const QPoint &pos) { } if (!selectedText().isEmpty()) { - m_actionLookupText->setText(tr("Search \"%1\" via Google...").arg(selectedText())); + m_actionLookupText->setText(tr("Search \"%1\" via Google...").arg(TextFactory::shorten(selectedText()))); context_menu.addAction(m_actionLookupText); }