Commit e9a229bc authored by Volker Krause's avatar 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
......@@ -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));
......
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