efl_ui_focus_manager_calc: only focus none NULL candidates
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Wed, 30 Aug 2017 20:38:51 +0000 (22:38 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Wed, 30 Aug 2017 20:39:52 +0000 (22:39 +0200)
src/lib/elementary/efl_ui_focus_manager_calc.c

index dbd64c5..232cc69 100644 (file)
@@ -1309,7 +1309,8 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_move(Eo *obj EINA_UNUSED, Efl_Ui
                    {
                       n = T(n).parent;
                       new_candidate = _request_move(obj, pd, direction, n);
-                      efl_ui_focus_manager_focus_set(obj, new_candidate);
+                      if (new_candidate)
+                        efl_ui_focus_manager_focus_set(obj, new_candidate);
                       candidate = new_candidate;
                    }
                }