Commit da34c1ab authored by Laurent Montel's avatar Laurent Montel 😁

We need to initialize "cid" before to start apps

BUG: 423267
FIXED-IN: 5.15.0
parent 25a3ae64
Pipeline #27388 failed with stage
in 7 minutes and 54 seconds
......@@ -33,6 +33,7 @@ using namespace Kontact;
#ifdef WIN32
#include <windows.h>
#else
#include <QWebEngineUrlScheme>
#include <unistd.h>
#endif
#include <PimCommon/BroadcastStatus>
......@@ -84,6 +85,10 @@ using namespace Kontact;
MainWindow::MainWindow()
: KontactInterface::Core()
{
QWebEngineUrlScheme cidScheme("cid");
cidScheme.setFlags(QWebEngineUrlScheme::SecureScheme | QWebEngineUrlScheme::ContentSecurityPolicyIgnored);
cidScheme.setSyntax(QWebEngineUrlScheme::Syntax::Path);
QWebEngineUrlScheme::registerScheme(cidScheme);
QDBusConnection::sessionBus().registerObject(
QStringLiteral("/KontactInterface"), this, QDBusConnection::ExportScriptableSlots);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment