summaryrefslogtreecommitdiff
path: root/src/webtab/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webtab/webview.cpp')
-rw-r--r--src/webtab/webview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index 44b24cc5..df91451f 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -380,14 +380,6 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
sendByMailAction->setText(i18n("Share link"));
- if (m_isExternalLinkHovered)
- {
- a = new KAction(KIcon("view-close"), i18n("Open &Here"), this);
- a->setData(m_contextMenuHitResult.linkUrl());
- connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkHere()));
- 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()));
@@ -406,6 +398,14 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
menu.addAction(a);
}
+ if (m_isExternalLinkHovered)
+ {
+ a = new KAction(KIcon("view-close"), i18n("Open &Here"), this);
+ a->setData(m_contextMenuHitResult.linkUrl());
+ connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkHere()));
+ menu.addAction(a);
+ }
+
menu.addSeparator();
// Don't show dots if we are NOT going to ask for download path