summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_ctxpopup.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-12 17:42:28 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 09:57:05 +0900
commite4a440797b04a1738a20f54a075c5f20186e40e0 (patch)
tree7abb23476b8cfd06b766e8d814103de33bef21b9 /src/lib/elementary/elc_ctxpopup.c
parent76bc13530a7e6b8725b036a5ab76f890499ef0d6 (diff)
ctxpopup: Avoid safety error on call on null obj
See 6aa309ffb80a30ce7049d744f2d5abcc2a70b42c
Diffstat (limited to 'src/lib/elementary/elc_ctxpopup.c')
-rw-r--r--src/lib/elementary/elc_ctxpopup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index f339597..22789a7 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -1094,7 +1094,10 @@ _elm_ctxpopup_elm_widget_on_disabled_update(Eo *obj, Elm_Ctxpopup_Data *sd, Eina
1094 if (!elm_obj_widget_on_disabled_update(efl_super(obj, MY_CLASS), disabled)) 1094 if (!elm_obj_widget_on_disabled_update(efl_super(obj, MY_CLASS), disabled))
1095 return EINA_FALSE; 1095 return EINA_FALSE;
1096 1096
1097 elm_object_disabled_set(sd->list ?: sd->content, disabled); 1097 if (sd->list)
1098 elm_object_disabled_set(sd->list, disabled);
1099 else if (sd->content)
1100 elm_object_disabled_set(sd->content, disabled);
1098 1101
1099 return EINA_TRUE; 1102 return EINA_TRUE;
1100} 1103}