summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanagiotis Papadopoulos <pano_90@gmx.net>2010-12-14 15:53:39 +0100
committerPanagiotis Papadopoulos <pano_90@gmx.net>2010-12-14 15:53:39 +0100
commit56e76a37e73ea769bbb376308445c006d8444a54 (patch)
tree996ff3ea595ca4ef6310a2e2686c62693aefbd7e
parentGCI Task: Copy Context menu for Network Analyzer, by Furkan Uzumcu (diff)
downloadrekonq-56e76a37e73ea769bbb376308445c006d8444a54.tar.xz
fix opening of URL-like selections in new tab
patch by Furkan, thx :-)
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
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();