From 9bfeb09b7f41326c92722d8ab2e83ba5c4df1888 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sun, 29 Jul 2007 05:02:18 +0000 Subject: [PATCH] Use a better null trap for e_theme_config_get returning NULL. This should allow a theme to still be set. SVN revision: 31071 --- src/modules/conf_theme/e_int_config_theme.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/conf_theme/e_int_config_theme.c b/src/modules/conf_theme/e_int_config_theme.c index 4695127a3..2f5bbd642 100644 --- a/src/modules/conf_theme/e_int_config_theme.c +++ b/src/modules/conf_theme/e_int_config_theme.c @@ -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();