Commit 86a8cc0c authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Fix KMail crash when adding too many recipients

MultiplyingLineView::addLine() returns a null pointer if the limit
has been reached, but MultiplyingLineView::slotReturnPressed() uses
the pointer without a null check.

A quick crash fix.  Still needs further investigation because the "too
many recipients" error box is shown when it should not be.  See D28876
for more information.

Differential Revision: https://phabricator.kde.org/D28876
parent a75b3a9f
......@@ -124,6 +124,9 @@ void MultiplyingLineView::slotReturnPressed(MultiplyingLine *line)
if (!empty) {
empty = addLine();
}
if (!empty) {
return;
}
activateLine(empty);
}
}
......
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