efl_ui_focus_object: Don't pass NULL to child_focus_set
authorChristopher Michael <cp.michael@samsung.com>
Thu, 17 Jan 2019 12:52:15 +0000 (07:52 -0500)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:18 +0000 (14:20 +0900)
commitc82cfc80ed81cb7e226f5c3ce9fb421bc64d0736
tree42c72be58b1b05da477c1d8aabd56637577012f6
parent02c5b4d9130ea546c6ea048a4d628e3f3e7edec6
efl_ui_focus_object: Don't pass NULL to child_focus_set

When starting elementary_test, efl_ui_focus_object_child_focus_set is
getting passed NULL on startup because elm_test window has no parent.
This makes it difficult to debug and fix T7030 issues. In order to fix
the issue, this patch checks for a valid parent before calling
efl_ui_focus_object_child_focus_set so that it no longer gets passed
NULL on elm_test startup and we can set breakpoints on eo.c:637
without getting interrupted at startup.

ref T7030

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7677
src/lib/elementary/efl_ui_focus_object.c