Fix Move To Trash command for virtual collections
ClosedPublic

Authored by dvratil on Jul 29 2018, 5:11 PM.

Details

Summary

When current folder is a virtual collection, the Items in it may belong
to multiple different resources and as such have different Trash folders.
This change makes KMTrashMsgCommand aware of this fact and to handle
this case correctly by resolving parent collections of all selected
messages.

Test Plan

Tested against the Unified Mailboxes Agent (currently loving in
dev/unified-mailboxes branch) which has virtual collections.

Diff Detail

Repository
R206 KMail
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dvratil created this revision.Jul 29 2018, 5:11 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptJul 29 2018, 5:11 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dvratil requested review of this revision.Jul 29 2018, 5:11 PM
mlaurent accepted this revision.Jul 30 2018, 6:03 AM

it seems ok. I didn't test your branch but code seems logical.

This revision is now accepted and ready to land.Jul 30 2018, 6:03 AM
This revision was automatically updated to reflect the committed changes.