<table><tr><td style="">poboiko added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9715" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>My suggestion is to implement both fixes. <br />
On one hand, wrong connect/disconnect behaviour is not OK and should be fixed.<br />
On the other hand, we're dealing here with some sort of race condition, which in principle can be triggered i.e. if one has slow internet connection and somehow clicks "reload" twice (?), changes active account (?) before previous data arrived, or something like that. I'm not quite sure it is impossible; and additional clear() call looks rather harmless.</p>

<p>What do you think?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9715" rel="noreferrer">https://phabricator.kde.org/D9715</a></div></div><br /><div><strong>To: </strong>poboiko, KDE PIM<br /><strong>Cc: </strong>mlaurent, dvasin, winterz, vkrause, knauss, dvratil<br /></div>