[Klipper] Always restore the last clipbboard item
ClosedPublic

Authored by davidre on Jun 22 2019, 11:36 AM.

Details

Reviewers
ngraham
davidedmundson
Group Reviewers
Plasma
Summary

D19852 intrdouced x-kde-force-image-copy hint for programs to specify that
images should be set to the clipboard even if should not be included in the
history. But when the program was closed the clipboard was restored to the first
item in history in which the image was not included. To fix this introduce a new
class member which holds the last clipboard item and restore it.
Credit goes to David Edumndson

BUG: 393708

Test Plan

Try it with spectacle

Diff Detail

Repository
R120 Plasma Workspace
Branch
unify
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13138
Build 13156: arc lint + arc unit
davidre created this revision.Jun 22 2019, 11:36 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJun 22 2019, 11:36 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidre requested review of this revision.Jun 22 2019, 11:36 AM
ngraham edited the summary of this revision. (Show Details)Jun 22 2019, 12:25 PM
ngraham accepted this revision.Jun 22 2019, 12:30 PM

Stable branch please!

This revision is now accepted and ready to land.Jun 22 2019, 12:30 PM
ngraham closed this revision.Jun 22 2019, 6:13 PM

Arc didn't automatically close this because for some reason the commit message of what got committed lacked the Phab revision ID and the BUG: keyword. Not sure why.