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:
Mike Blumenkrantz 2017-04-07 16:07:25 -04:00
parent ffb402786b
commit 3b12f89ebe
1 changed files with 5 additions and 0 deletions

View File

@ -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;