forked from enlightenment/enlightenment
re-set list of default desklock bgs when changing to custom bg in config
this list of bgs gets freed a lot, including in this case, which results in the apply() function failing later after the bg has been changed fix T5288
This commit is contained in:
parent
ffb402786b
commit
3b12f89ebe
|
@ -718,6 +718,11 @@ _cb_method_change(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EIN
|
|||
cfdata->bgs = eina_list_append(cfdata->bgs, desklock_bg_dup(cbg, NULL));
|
||||
ll = ll->next;
|
||||
}
|
||||
if (!cfdata->bgs)
|
||||
{
|
||||
for (x = 0; x < cfdata->zone_count; x++)
|
||||
cfdata->bgs = eina_list_append(cfdata->bgs, desklock_bg_dup(NULL, "theme_desklock_background"));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue