From e1e786022fb1d8b42fa36566836842bc15e7f558 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 7 Apr 2013 17:48:56 +0200 Subject: Always show the open link in new tab/window contextual actions --- src/webtab/webview.cpp | 22 ++++++++++------------ 1 file 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()) { -- cgit v1.2.1