Fix crash when opening an attachment.

Authored by dfaure on Jan 13 2020, 3:31 PM.

Description

Fix crash when opening an attachment.

Summary:
takeAt() invalidated the iterator...
and (*it) already changes the item in the container anyway, so none of
this is necessary.

Test Plan: No longer crashes

Reviewers: mlaurent

Reviewed By: mlaurent

Differential Revision: https://phabricator.kde.org/D26629

Details

Committed
dfaureJan 13 2020, 3:35 PM
Reviewer
mlaurent
Differential Revision
D26629: Fix crash when opening an attachment.
Parents
R865:b26459de51fa: Ignore file
Branches
Unknown
Tags
Unknown