Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
ebff1af0
Commit
ebff1af0
authored
May 29, 2020
by
Laurent Montel
Browse files
Merge remote-tracking branch 'origin/release/20.04'
parents
f24e4193
249c0301
Pipeline
#21585
passed with stage
in 52 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/viewer/webengine/cidreferencesurlinterceptor/cidreferencesurlinterceptor.cpp
View file @
ebff1af0
...
...
@@ -37,10 +37,12 @@ bool CidReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo &inf
{
const
QUrl
urlRequestUrl
(
info
.
requestUrl
());
if
(
urlRequestUrl
.
scheme
()
==
QLatin1String
(
"cid"
))
{
const
QString
newUrl
=
MessageViewer
::
WebEngineEmbedPart
::
self
()
->
contentUrl
(
urlRequestUrl
.
path
());
if
(
!
newUrl
.
isEmpty
())
{
info
.
redirect
(
QUrl
(
newUrl
));
if
(
info
.
resourceType
()
==
QWebEngineUrlRequestInfo
::
ResourceTypeImage
)
{
const
QString
newUrl
=
MessageViewer
::
WebEngineEmbedPart
::
self
()
->
contentUrl
(
urlRequestUrl
.
path
());
if
(
!
newUrl
.
isEmpty
())
{
info
.
redirect
(
QUrl
(
newUrl
));
}
}
}
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment