Skip to content
Verified Commit 4649594a authored by Fushan Wen's avatar Fushan Wen
Browse files

klipper: store QImage and construct QPixmap only when necessary

The mime data from Wayland clipboard is not the exact same image, so two
image items are listed (first time restarting plasmashell). But after
images are saved to local, they have the same uuid again. So klipper
starts to become confused after the second time restarting plasmashell.

This is caused by QPixmap::from(QImage).toImage() erasing metadata in the
image, and KSystemClipboard will emit changed signal on Wayland, so
another identical image is added to clipboard.

BUG: 465225
BUG: 465326
BUG: 464828
BUG: 465603
FIXED-IN: 5.27
parent c6f4d6f7
Pipeline #329693 passed with stage
in 15 minutes and 39 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment