summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPanagiotis Papadopoulos <pano_90@gmx.net>2010-06-13 13:21:21 +0200
committerPanagiotis Papadopoulos <pano_90@gmx.net>2010-06-13 13:21:21 +0200
commit010b0f1d44134977a7f471679b2a3fc1b71df590 (patch)
tree79c9ef1b8f0b1b8cf9713b2dd71e44e20ab4138b /src
parentFix the add bookmark action of the WebView context menu (diff)
downloadrekonq-010b0f1d44134977a7f471679b2a3fc1b71df590.tar.xz
strip whitespaces from the start and the end of a selection
BUG: 241564
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 0633bc9b..9efd3a8c 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -201,6 +201,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
{
QString text = selectedText();
+ text = text.trimmed();
if (text.startsWith(QL1S("http://"))
|| text.startsWith(QL1S("https://"))
|| text.startsWith(QL1S("www."))