Fix shelf numbering

id must be unique. So if we have 2 zones with 1 shelf in each, hide 1
zone and add a new shelf, it must get id "hidden shelf" + 1

SVN revision: 45563
This commit is contained in:
Sebastian Dransfeld 2010-01-25 19:37:13 +00:00
parent 1fa9578da2
commit 306d3dee1f
1 changed files with 2 additions and 4 deletions

View File

@ -79,10 +79,8 @@ e_shelf_config_init(void)
if (cf_es->id <= 0) cf_es->id = id + 1;
zone = e_util_container_zone_id_get(cf_es->container, cf_es->zone);
if (zone)
{
id = cf_es->id;
e_shelf_config_new(zone, cf_es);
}
e_shelf_config_new(zone, cf_es);
id = cf_es->id;
}
}