Commit 696ade92 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Register cidScheme

parent 0332d2e2
Pipeline #27408 passed with stage
in 52 minutes and 28 seconds
......@@ -403,6 +403,7 @@ target_link_libraries(kmail
KF5::TemplateParser
KF5::Libkdepim
KF5::Crash
KF5::WebEngineViewer
${kmail_userfeedback_LIB}
)
......
......@@ -33,10 +33,12 @@
#include <QApplication>
#include <QSessionManager>
#include <KCrash>
#include <QWebEngineUrlScheme>
#ifdef WITH_KUSERFEEDBACK
#include <KUserFeedback/Provider>
#include "userfeedback/kmailuserfeedbackprovider.h"
#endif
//-----------------------------------------------------------------------------
......@@ -124,6 +126,12 @@ int main(int argc, char *argv[])
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
//Necessary for "cid" support in kmail.
QWebEngineUrlScheme cidScheme("cid");
cidScheme.setFlags(QWebEngineUrlScheme::SecureScheme | QWebEngineUrlScheme::ContentSecurityPolicyIgnored);
cidScheme.setSyntax(QWebEngineUrlScheme::Syntax::Path);
QWebEngineUrlScheme::registerScheme(cidScheme);
KMailApplication app(argc, &argv);
KLocalizedString::setApplicationDomain("kmail");
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
......
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