mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
Fix build
Summary: BUG: 402401 Test Plan: Builds Reviewers: drosca Reviewed By: drosca Subscribers: falkon Tags: #falkon Differential Revision: https://phabricator.kde.org/D17811
This commit is contained in:
parent
246951e474
commit
51323c62e3
@ -40,7 +40,7 @@
|
||||
KDEFrameworksIntegrationPlugin::KDEFrameworksIntegrationPlugin()
|
||||
: QObject()
|
||||
, m_backend(0)
|
||||
, m_sharePageMenu(new Purpose::Menu(this))
|
||||
, m_sharePageMenu(new Purpose::Menu())
|
||||
{
|
||||
m_sharePageMenu->setTitle(tr("Share page"));
|
||||
m_sharePageMenu->setIcon(QIcon::fromTheme(QStringLiteral("document-share")));
|
||||
@ -87,6 +87,7 @@ void KDEFrameworksIntegrationPlugin::unload()
|
||||
{
|
||||
mApp->autoFill()->passwordManager()->unregisterBackend(m_backend);
|
||||
delete m_backend;
|
||||
delete m_sharePageMenu;
|
||||
|
||||
for (KIOSchemeHandler *handler : qAsConst(m_kioSchemeHandlers)) {
|
||||
mApp->webProfile()->removeUrlSchemeHandler(handler);
|
||||
@ -101,7 +102,7 @@ void KDEFrameworksIntegrationPlugin::populateWebViewMenu(QMenu *menu, WebView *v
|
||||
Q_UNUSED(r)
|
||||
|
||||
m_sharePageMenu->model()->setInputData(QJsonObject{
|
||||
{ QStringLiteral("urls"), QJsonValue(view->url()) },
|
||||
{ QStringLiteral("urls"), QJsonValue(view->url().toString()) },
|
||||
{ QStringLiteral("title"), QJsonValue(view->title()) }
|
||||
});
|
||||
m_sharePageMenu->reload();
|
||||
|
Loading…
Reference in New Issue
Block a user