Fix KMail crash when adding too many recipients

Authored by marten on Apr 17 2020, 7:55 PM.

Description

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

Details

Committed
martenApr 17 2020, 7:55 PM
Differential Revision
D28876: Fix KMail crash when adding too many recipients
Parents
R89:a75b3a9ff483: Port to QComboBox
Branches
Unknown
Tags
Unknown