Skip to content
Commit 89d1f0e0 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 Wayland clipboard is async, so another identical image is added
to clipboard.

BUG: 465225
BUG: 465326
BUG: 464828
BUG: 465603
FIXED-IN: 5.27


(cherry picked from commit 4649594a)
parent 3b36aa6b
Pipeline #330678 failed with stage
in 17 minutes and 59 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