[StandardActionManager] Don't add PendingCutRole when copying
ClosedPublic

Authored by poboiko on May 6 2020, 2:22 PM.

Details

Summary

We shouldn't add PendingCutRole (which i.e. greys out items from the EntityTreeView) when we are only copying, not cutting

Test Plan

Although I've found no PIM applications which use Copy action (KMail, KAdressBook and KOrganizer use Copy To with a submenu),
I've used this action in KJots (to be able to paste links to various notes / books inside notes, instead of existing copy_link_address action), and it works.

Diff Detail

Repository
R165 Akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
poboiko created this revision.May 6 2020, 2:22 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMay 6 2020, 2:22 PM
poboiko requested review of this revision.May 6 2020, 2:22 PM
dvratil accepted this revision.May 8 2020, 8:48 PM
This revision is now accepted and ready to land.May 8 2020, 8:48 PM
This revision was automatically updated to reflect the committed changes.