Image wallpaper: Fix verification of a background image file

Authored by marten on Sep 14 2016, 1:27 PM.

Description

Image wallpaper: Fix verification of a background image file

BackgroundFinder::suffixes(), despite its name, actually returns a list
of glob patterns. The extension of the image file is checked against
this list to ensure that it is supported, which needs to take
account of that. Do the check in a new function
BackgroundFinder::isAcceptableSuffix(const QString &suffix).

Reviewers: davidedmundson, Plasma
Reviewed By: davidedmundson, Plasma
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D2722

Details

Committed
martenSep 14 2016, 1:32 PM
Reviewer
Plasma
Differential Revision
D2722: Wallpaper slideshow: Incorrect checking of file suffix against glob pattern
Parents
R120:35bf3fa619d8: Update required frameworks version
Branches
Unknown
Tags
Unknown