summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-04-07 17:48:56 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-04-07 17:48:56 +0200
commite1e786022fb1d8b42fa36566836842bc15e7f558 (patch)
tree5dc96b002e8cc27c0860f7b6cfb04ecef391f218 /src/webtab
parentClean up url loading (diff)
downloadrekonq-e1e786022fb1d8b42fa36566836842bc15e7f558.tar.xz
Always show the open link in new tab/window contextual actions
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/webview.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index 91bd838c..44b24cc5 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -387,18 +387,16 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkHere()));
menu.addAction(a);
}
- else
- {
- a = new KAction(KIcon("tab-new"), i18n("Open in New &Tab"), &menu);
- a->setData(m_contextMenuHitResult.linkUrl());
- connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewTab()));
- menu.addAction(a);
-
- a = new KAction(KIcon("window-new"), i18n("Open in New &Window"), &menu);
- a->setData(m_contextMenuHitResult.linkUrl());
- connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewWindow()));
- menu.addAction(a);
- }
+
+ a = new KAction(KIcon("tab-new"), i18n("Open in New &Tab"), &menu);
+ a->setData(m_contextMenuHitResult.linkUrl());
+ connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewTab()));
+ menu.addAction(a);
+
+ a = new KAction(KIcon("window-new"), i18n("Open in New &Window"), &menu);
+ a->setData(m_contextMenuHitResult.linkUrl());
+ connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewWindow()));
+ menu.addAction(a);
if (!m_parentTab->isWebApp())
{