Commit 33322e5c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Register cidScheme

parent 78783c6f
Pipeline #27534 passed with stage
in 30 minutes and 15 seconds
...@@ -403,6 +403,7 @@ target_link_libraries(kmail ...@@ -403,6 +403,7 @@ target_link_libraries(kmail
KF5::TemplateParser KF5::TemplateParser
KF5::Libkdepim KF5::Libkdepim
KF5::Crash KF5::Crash
KF5::WebEngineViewer
${kmail_userfeedback_LIB} ${kmail_userfeedback_LIB}
) )
......
...@@ -33,10 +33,12 @@ ...@@ -33,10 +33,12 @@
#include <QApplication> #include <QApplication>
#include <QSessionManager> #include <QSessionManager>
#include <KCrash> #include <KCrash>
#include <QWebEngineUrlScheme>
#ifdef WITH_KUSERFEEDBACK #ifdef WITH_KUSERFEEDBACK
#include <KUserFeedback/Provider> #include <KUserFeedback/Provider>
#include "userfeedback/kmailuserfeedbackprovider.h" #include "userfeedback/kmailuserfeedbackprovider.h"
#endif #endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
...@@ -124,6 +126,12 @@ int main(int argc, char *argv[]) ...@@ -124,6 +126,12 @@ int main(int argc, char *argv[])
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, 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); KMailApplication app(argc, &argv);
KLocalizedString::setApplicationDomain("kmail"); KLocalizedString::setApplicationDomain("kmail");
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("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