set clock gadget id on creation

fix T5851
This commit is contained in:
Mike Blumenkrantz 2017-08-07 14:43:37 -04:00
parent 04436da412
commit 1727098387
1 changed files with 4 additions and 2 deletions

View File

@ -333,9 +333,11 @@ _conf_item_get(int *id, Eina_Bool digital)
ci = E_NEW(Config_Item, 1);
if (!*id)
ci->id = time_config->items ? eina_list_count(time_config->items) + 1 : 1;
else
*id = ci->id = time_config->items ? eina_list_count(time_config->items) + 1 : 1;
else if (*id < 0)
ci->id = -1;
else
ci->id = *id;
ci->weekend.start = 6;
ci->weekend.len = 2;