mirror of
https://invent.kde.org/network/falkon.git
synced 2024-09-22 02:02:10 +02: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());
|
const QWebHitTestResult &hitTest = page()->mainFrame()->hitTestContent(event->pos());
|
||||||
|
|
||||||
createContextMenu(m_menu, hitTest, event->pos());
|
createContextMenu(m_menu, hitTest, event->pos());
|
||||||
|
|
||||||
|
if (!hitTest.isContentEditable() && !hitTest.isContentSelected()) {
|
||||||
m_menu->addAction(p_QupZilla->adBlockIcon()->menuAction());
|
m_menu->addAction(p_QupZilla->adBlockIcon()->menuAction());
|
||||||
|
}
|
||||||
|
|
||||||
m_menu->addSeparator();
|
m_menu->addSeparator();
|
||||||
m_menu->addAction(tr("Inspect Element"), this, SLOT(inspectElement()));
|
m_menu->addAction(tr("Inspect Element"), this, SLOT(inspectElement()));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user