<table><tr><td style="">dvratil 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/D5711" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>The difference comes likely from the Monitor. Better solution (which allows us keeping the if () check) is to pass the parent collection as a second argument to monitoredItemRemoved() (with Collection() as default value) - when called from monitoredItemMoved, you pass the sourceCollection, when called from elsewhere, you won't pass anything and then you just check if the collection is valid and use it in the if(), or fallback to item.parentCollection().</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R165 Akonadi </div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5711" rel="noreferrer">https://phabricator.kde.org/D5711</a></div></div><br /><div><strong>To: </strong>mkoller, dvratil<br /><strong>Cc: </strong>KDE PIM, dvasin, ach, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>