mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Moving "Open in new tab" option to the top in webview context menu
This commit is contained in:
parent
cbf4a9813a
commit
1d8cb36148
@ -406,8 +406,8 @@ void WebView::contextMenuEvent(QContextMenuEvent* event)
|
||||
if (!r.linkUrl().isEmpty() && r.linkUrl().scheme()!="javascript") {
|
||||
if (page()->selectedText() == r.linkText())
|
||||
findText("");
|
||||
menu->addAction(tr("Open link in new window"), this, SLOT(openUrlInNewWindow()))->setData(r.linkUrl());
|
||||
menu->addAction(QIcon(":/icons/menu/popup.png"), tr("Open link in new tab"), this, SLOT(openUrlInNewTab()))->setData(r.linkUrl());
|
||||
menu->addAction(tr("Open link in new window"), this, SLOT(openUrlInNewWindow()))->setData(r.linkUrl());
|
||||
menu->addSeparator();
|
||||
menu->addAction(QIcon::fromTheme("user-bookmarks"), tr("Bookmark link"), this, SLOT(bookmarkLink()))->setData(r.linkUrl());
|
||||
menu->addAction(QIcon::fromTheme("document-save"), tr("Save link as..."), this, SLOT(downloadLinkToDisk()))->setData(r.linkUrl());
|
||||
|
Loading…
Reference in New Issue
Block a user