Commit d2e13a76 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Symplify code

parent e4d54bae
Pipeline #214628 passed with stage
in 6 minutes and 23 seconds
......@@ -4533,10 +4533,9 @@ void KMMainWidget::itemsReceived(const Akonadi::Item::List &list)
}
return;
}
if (item.hasAttribute<Akonadi::MDNStateAttribute>()
&& item.attribute<Akonadi::MDNStateAttribute>()->mdnState() == Akonadi::MDNStateAttribute::MDNStateUnknown) {
sendMdnInfo(item);
} else if (!item.hasAttribute<Akonadi::MDNStateAttribute>()) {
if (!item.hasAttribute<Akonadi::MDNStateAttribute>()
|| (item.hasAttribute<Akonadi::MDNStateAttribute>()
&& item.attribute<Akonadi::MDNStateAttribute>()->mdnState() == Akonadi::MDNStateAttribute::MDNStateUnknown)) {
sendMdnInfo(item);
} else {
mMsgView->viewer()->mdnWarning()->animatedHide();
......
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