From 56e76a37e73ea769bbb376308445c006d8444a54 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Tue, 14 Dec 2010 15:53:39 +0100 Subject: fix opening of URL-like selections in new tab patch by Furkan, thx :-) --- src/webview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index ee0b9a6f..aeaf92b7 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -205,12 +205,12 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) } //open selected text url in a new tab QAction * const openInNewTabAction = new KAction(KIcon("tab-new"), i18n("Open '%1' in New Tab", truncatedUrl), this); - openInNewTabAction->setData(urlLikeText); + openInNewTabAction->setData(QUrl(urlLikeText)); connect(openInNewTabAction, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewTab())); menu.addAction(openInNewTabAction); //open selected text url in a new window QAction * const openInNewWindowAction = new KAction(KIcon("window-new"), i18n("Open '%1' in New Window", truncatedUrl), this); - openInNewWindowAction->setData(urlLikeText); + openInNewWindowAction->setData(QUrl(urlLikeText)); connect(openInNewWindowAction, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewWindow())); menu.addAction(openInNewWindowAction); menu.addSeparator(); -- cgit v1.2.1