efl_ui_layout: ensure that resize_obj is present before emitting signals

otherwise there will be warnings because of calling api on NULL objects.

Differential Revision: https://phab.enlightenment.org/D8512
This commit is contained in:
Marcel Hollerbach 2019-03-29 13:25:54 +01:00
parent 0c0f47796b
commit 1a5dde0b47
1 changed files with 3 additions and 0 deletions

View File

@ -399,6 +399,9 @@ static void
_flush_mirrored_state(Eo *obj)
{
char prefix[4], state[10], signal[100];
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
if (!wd->resize_obj) return;
if (efl_ui_widget_disabled_get(obj))
snprintf(state, sizeof(state), "disabled");