1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

WebHitTestResult: Only update with contextmenu data with same position

This commit is contained in:
David Rosca 2017-01-23 08:20:29 +01:00
parent e7bd2ed8cd
commit 1ed1059c42

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - QtWebEngine based browser
* Copyright (C) 2015-2016 David Rosca <nowrep@gmail.com>
* QupZilla - Qt web browser
* Copyright (C) 2015-2017 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -91,7 +91,7 @@ WebHitTestResult::WebHitTestResult(const WebPage *page, const QPoint &pos)
void WebHitTestResult::updateWithContextMenuData(const QWebEngineContextMenuData &data)
{
if (!data.isValid()) {
if (!data.isValid() || data.position() != m_pos) {
return;
}