trying to clear the context menu, but that does not work

This commit is contained in:
2026-04-30 11:53:08 +02:00
parent be980dbffd
commit b53597396c
5 changed files with 42 additions and 6 deletions
+2
View File
@@ -3,6 +3,7 @@
#include <QJsonObject>
#include <QMenu>
#include "rktwebview_qt.h"
#include "utils.h"
static QAction *addMenuItemFromJson(Rktwebview_qt *owner,
QMenu *menu,
@@ -87,6 +88,7 @@ QMenu *buildMenuFromJson(Rktwebview_qt *self, const QString &menu_json, int sour
QJsonDocument doc = QJsonDocument::fromJson(menu_json.toUtf8(), &err);
if (err.error != QJsonParseError::NoError || !doc.isObject()) {
ERROR2("Json parse error for menu: %d, '%s'\n", err.error, err.errorString().toUtf8().constData());
return nullptr;
}