summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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."))