From 5ed4e01ce041c161a8a793e38f167200889ab96e Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 26 Aug 2020 01:20:45 +0200 Subject: [PATCH] Fix page sharing via Purpose Purpose expects a list of URLs, not a single URL --- .../kdeframeworksintegrationplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/KDEFrameworksIntegration/kdeframeworksintegrationplugin.cpp b/src/plugins/KDEFrameworksIntegration/kdeframeworksintegrationplugin.cpp index 87587d212..5e8ade759 100644 --- a/src/plugins/KDEFrameworksIntegration/kdeframeworksintegrationplugin.cpp +++ b/src/plugins/KDEFrameworksIntegration/kdeframeworksintegrationplugin.cpp @@ -35,6 +35,7 @@ #include #include +#include KDEFrameworksIntegrationPlugin::KDEFrameworksIntegrationPlugin() : QObject() @@ -96,7 +97,7 @@ void KDEFrameworksIntegrationPlugin::populateWebViewMenu(QMenu *menu, WebView *v Q_UNUSED(r) m_sharePageMenu->model()->setInputData(QJsonObject{ - { QStringLiteral("urls"), QJsonValue(view->url().toString()) }, + { QStringLiteral("urls"), QJsonArray {QJsonValue(view->url().toString())} }, { QStringLiteral("title"), QJsonValue(view->title()) } }); m_sharePageMenu->reload();