mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-06 07:58:05 +02:00
main: Verify that profile to activate is valid
This commit is contained in:
parent
1ffbea1905
commit
ccebd407c7
1 changed files with 1 additions and 0 deletions
|
|
@ -143,6 +143,7 @@ ppd_driver_activate_profile (PpdDriver *driver,
|
|||
GError **error)
|
||||
{
|
||||
g_return_val_if_fail (PPD_IS_DRIVER (driver), FALSE);
|
||||
g_return_val_if_fail (ppd_profile_has_single_flag (profile), FALSE);
|
||||
|
||||
if (!PPD_DRIVER_GET_CLASS (driver)->activate_profile)
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue