Commit a6355ff7 authored by Laurent Montel's avatar Laurent Montel 😁

be safe

parent b1e3a23a
......@@ -418,6 +418,9 @@ KMMsgSignatureState NodeHelper::overallSignatureState(KMime::Content *node) cons
contents.append(node);
}
int i = contents.indexOf(const_cast<KMime::Content *>(node));
if (i < 0) { //Be safe
return myState;
}
for (; i < contents.size(); ++i) {
auto next = contents.at(i);
KMMsgSignatureState otherState = signatureState(next);
......
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