From 71f54ad7d6ff5bcdbf182a822b3d325b7f0c48bd Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Thu, 26 Nov 2020 22:50:37 +0100 Subject: [PATCH] theme: ensure group exists in file before using it --- src/bin/theme.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/theme.c b/src/bin/theme.c index d8aa1d53..43adeec2 100644 --- a/src/bin/theme.c +++ b/src/bin/theme.c @@ -72,14 +72,16 @@ theme_apply(Evas_Object *obj, { edje = elm_layout_edje_get(obj); - if (elm_layout_file_set(obj, theme_path, group)) + if ((edje_file_group_exists(theme_path, group) == EINA_TRUE) && + (elm_layout_file_set(obj, theme_path, group))) goto done; if (elm_layout_file_set(obj, theme_path_default_get(), group)) goto done; } else { - if (edje_object_file_set(edje, theme_path, group)) + if ((edje_file_group_exists(theme_path, group) == EINA_TRUE) && + (edje_object_file_set(edje, theme_path, group))) goto done; if (edje_object_file_set(edje, theme_path_default_get(), group)) goto done;