Model: more effective TreeItemMessage's child insertion
commit05243f2ab7584a91f1ac86135645fb9d0aede44c
authorJan Kundrát <jkt@kde.org>
Sun, 13 Mar 2016 11:13:27 +0000 (13 12:13 +0100)
committerJan Kundrát <jkt@kde.org>
Sun, 13 Mar 2016 12:32:36 +0000 (13 13:32 +0100)
tree3775450939ba4c3463461c3d01df26f6e06d6f00
parentdfea82ded765639668503d93dfead869470a3056
Model: more effective TreeItemMessage's child insertion

There's really no need to mess with ugly fetching state overrides just
because our setChildren inadvertently sets the DONE bit. It's better to
simply fix the TreeItemMessage::setChildren implementation.

I'm leaving both commits in the git history to better represent the, uh,
"development process". The previous commit is just ugly, but it doesn't
introduce any error (hopefully).

Change-Id: Iabf4c9d56d4eca605d5bdbc4efef09c633d6e802
src/Imap/Model/MailboxTree.cpp
src/Imap/Model/MailboxTree.h