summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorPanagiotis Papadopoulos <pano_90@gmx.net>2009-09-30 13:56:04 +0200
committerPanagiotis Papadopoulos <pano_90@gmx.net>2009-09-30 13:56:04 +0200
commitf1172628f530c5529d89daf06faecda49a55aa91 (patch)
tree33d95b68a7e1eb5c7a9a2440dab419ce2de2a236 /src/webview.cpp
parentCleaning thumbs cache (diff)
downloadrekonq-f1172628f530c5529d89daf06faecda49a55aa91.tar.xz
"Added support" for opening URLs that start with www.
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp2
1 files changed, 1 insertions, 1 deletions
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);