Commit 24dfc100 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Not necessary to check if list is empty

parent 95797a51
......@@ -82,10 +82,8 @@ KTNEFView::~KTNEFView() = default;
void KTNEFView::setAttachments(const QList<KTNEFAttach *> &list)
{
clear();
if (!list.isEmpty()) {
for (const auto &s : list) {
new Attachment(this, s);
}
for (const auto &s : list) {
new Attachment(this, s);
}
}
......
Supports Markdown
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