summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-15 19:22:38 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-15 19:22:38 +0200
commitf7fbd557abc45292d2f43ba21229267f314265cf (patch)
treec2d251ab8eaeb5b16579967dd113f52d817dc888 /src
parentLet analyzer panel columns to be resizable. (diff)
parentstrip whitespaces from the start and the end of a selection (diff)
downloadrekonq-f7fbd557abc45292d2f43ba21229267f314265cf.tar.xz
Merge commit 'refs/merge-requests/139' of git://gitorious.org/rekonq/mainline
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 7fc1b4b8..afa63028 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -216,6 +216,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."))