1
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:
nowrep 2013-02-05 13:41:30 +01:00
parent 668022ed64
commit dfb69be90e

View File

@ -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()));