From f1172628f530c5529d89daf06faecda49a55aa91 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 30 Sep 2009 13:56:04 +0200 Subject: "Added support" for opening URLs that start with www. --- src/webview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webview.cpp b/src/webview.cpp index fac98f71..45967430 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -215,7 +215,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) { // page action QString text = selectedText(); - if (text.startsWith( QLatin1String("http://") ) || text.startsWith( QLatin1String("https://") )) + if (text.startsWith( QLatin1String("http://") ) || text.startsWith( QLatin1String("https://") ) || text.startsWith( QLatin1String("www.") ) ) { //open selected text url in a new tab a = new KAction(KIcon("tab-new"), i18n("Open: '") + text.toUtf8().left(15) + QString("...'"), this); -- cgit v1.2.1