mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Don't show AdBlock icon in webview context menu on editable content.
This commit is contained in:
parent
668022ed64
commit
dfb69be90e
|
@ -264,7 +264,10 @@ void TabbedWebView::contextMenuEvent(QContextMenuEvent* event)
|
|||
const QWebHitTestResult &hitTest = page()->mainFrame()->hitTestContent(event->pos());
|
||||
|
||||
createContextMenu(m_menu, hitTest, event->pos());
|
||||
m_menu->addAction(p_QupZilla->adBlockIcon()->menuAction());
|
||||
|
||||
if (!hitTest.isContentEditable() && !hitTest.isContentSelected()) {
|
||||
m_menu->addAction(p_QupZilla->adBlockIcon()->menuAction());
|
||||
}
|
||||
|
||||
m_menu->addSeparator();
|
||||
m_menu->addAction(tr("Inspect Element"), this, SLOT(inspectElement()));
|
||||
|
|
Loading…
Reference in New Issue
Block a user