Evas_Object *subobj;
ELM_WIDGET_DATA_GET(parent, sdp);
-
- sdp->child_can_focus = EINA_FALSE;
- for (unsigned int i = 0; i < eina_array_count(sdp->children); ++i)
+ //TIZEN_ONLY(20230912): Improved safety of efl_ui_widget_sub_object_del
+ if (sdp)
{
- subobj = eina_array_data_get(sdp->children, i);
- if ((subobj != sobj) && (_is_focusable(subobj)))
+ sdp->child_can_focus = EINA_FALSE;
+ for (unsigned int i = 0; i < eina_array_count(sdp->children); ++i)
{
- sdp->child_can_focus = EINA_TRUE;
- break;
+ subobj = eina_array_data_get(sdp->children, i);
+ if ((subobj != sobj) && (_is_focusable(subobj)))
+ {
+ sdp->child_can_focus = EINA_TRUE;
+ break;
+ }
}
- }
- /* break again, child_can_focus went back to
- * original value */
- if (sdp->child_can_focus) break;
- parent = sdp->parent_obj;
+ /* break again, child_can_focus went back to
+ * original value */
+ if (sdp->child_can_focus) break;
+ parent = sdp->parent_obj;
+ }
+ //
}
}
//