From 010b0f1d44134977a7f471679b2a3fc1b71df590 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sun, 13 Jun 2010 13:21:21 +0200 Subject: strip whitespaces from the start and the end of a selection BUG: 241564 --- src/webview.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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.")) -- cgit v1.2.1