1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

WebView: Clear m_clickedUrl and m_clickedPos in mousePressEvent

This commit is contained in:
David Rosca 2015-10-01 18:16:48 +02:00
parent 9f36401be9
commit 8e39135920

View File

@ -990,6 +990,9 @@ void WebView::_wheelEvent(QWheelEvent *event)
void WebView::_mousePressEvent(QMouseEvent *event) void WebView::_mousePressEvent(QMouseEvent *event)
{ {
m_clickedUrl = QUrl();
m_clickedPos = QPoint();
if (mApp->plugins()->processMousePress(Qz::ON_WebView, this, event)) { if (mApp->plugins()->processMousePress(Qz::ON_WebView, this, event)) {
event->accept(); event->accept();
return; return;