Skip to content

wallpapers/image: avoid using equal in model index comparison

Fushan Wen requested to merge work/fuf/bug486568 into master

Reason for the change

Equal can confuse the sort filter model when 3 items have the same date. For reversed order Qt swaps the left index and the right index internally, so let's follow the best practice.

Test plan

  1. Run kcmshell6 kcm_wallpaper
  2. Choose the slideshow wallpaper plugin and add a bunch of wallpapers
  3. Choose "Date modified (newest first)"
  4. Scroll down the wallpaper list to see if any preview is flashing

Screenshots or screen recordings

Bugs fixed

BUG: 486568

Merge request reports

Loading