validate the config before checking if it can be applied

Authored by sebas on May 4 2016, 10:37 PM.

Description

validate the config before checking if it can be applied

Summary:
canBeApplied is public API, it shouldn't blow up when passed an invalid
config, but indicate (correctly!) that this "config" can't be applied.

This is called a bit carelessly from the kded daemon. I've fixed it
there as well, but it seems prudent to also make sure in libkscreen that
the user doesn't do stupid things.

CCBUG:362586

Test Plan: autotests pass

Reviewers: Plasma, graesslin

Reviewed By: Plasma, graesslin

Subscribers: graesslin, plasma-devel

Projects: Plasma

Differential Revision: https://phabricator.kde.org/D1532

Details

Committed
sebasMay 6 2016, 12:01 PM
Reviewer
Plasma
Differential Revision
D1532: validate the config before checking if it can be applied
Parents
R110:c3cb380aa083: Verify rotation when updating screen size in XRandR backend
Branches
Unknown
Tags
Unknown