Fix issue in which assigning the same theme category to many themes would result in the lack of an icon designating that it was in fact assigned.

SVN revision: 30156
This commit is contained in:
Eric Schuele 2007-05-30 11:51:06 +00:00
parent b035072bff
commit 2984c9da36
1 changed files with 3 additions and 1 deletions

View File

@ -854,7 +854,7 @@ _cb_adv_btn_assign(void *data1, void *data2)
t = themes->data;
if (!strcmp(t->category, newtheme->category))
{
if (t->file)
if ((t->file) && (strcmp(t->file, newtheme->file)))
{
filename = strdup(t->file);
free((void *)(t->file));
@ -873,6 +873,8 @@ _cb_adv_btn_assign(void *data1, void *data2)
}
if (!themes)
cfdata->theme_list = evas_list_append(cfdata->theme_list, newtheme);
else
free(newtheme);
return;
}