Use a better null trap for e_theme_config_get returning NULL. This should

allow a theme to still be set.


SVN revision: 31071
This commit is contained in:
Christopher Michael 2007-07-29 05:02:18 +00:00
parent aeacbf6530
commit 9bfeb09b7f
1 changed files with 4 additions and 2 deletions

View File

@ -475,8 +475,10 @@ _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
/* Actually take our cfdata settings and apply them in real life */
ct = e_theme_config_get("theme");
if (!ct) return 0;
if (!strcmp(ct->file, cfdata->theme)) return 1;
if (ct)
{
if (!strcmp(ct->file, cfdata->theme)) return 1;
}
e_theme_config_set("theme", cfdata->theme);
e_config_save_queue();