Add trap for the odd case where e_theme_config_get may return null.

SVN revision: 31070
This commit is contained in:
Christopher Michael 2007-07-29 04:49:02 +00:00
parent 5a5ea782cb
commit aeacbf6530
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ _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;
e_theme_config_set("theme", cfdata->theme);