Skip to content
GitLab
Menu
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
e9a229bc
Commit
e9a229bc
authored
Jul 28, 2021
by
Volker Krause
Browse files
Fix QStringView porting mistake
This caused asserts when interacting with the message viewer.
parent
8ee6e5a2
Pipeline
#72293
passed with stage
in 25 minutes and 1 second
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
mimetreeparser/src/nodehelper.cpp
View file @
e9a229bc
...
...
@@ -753,7 +753,7 @@ KMime::Content *NodeHelper::contentFromIndex(KMime::Content *node, const QString
const
QString
&
path
=
pathParts
[
i
];
if
(
path
.
startsWith
(
QLatin1Char
(
'e'
)))
{
const
QVector
<
KMime
::
Content
*>
&
extraParts
=
mExtraContents
.
value
(
c
);
const
int
idx
=
QStringView
(
path
).
mid
(
1
,
-
1
).
toInt
();
const
int
idx
=
QStringView
(
path
).
mid
(
1
).
toInt
();
c
=
(
idx
<
extraParts
.
size
())
?
extraParts
[
idx
]
:
nullptr
;
}
else
{
c
=
c
->
content
(
KMime
::
ContentIndex
(
path
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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