From 98bb0c8d3f60f6a56c6da4691e71cd3f504c0005 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 22 Oct 2009 12:08:20 +0000 Subject: [PATCH] add extra safety checks. SVN revision: 43199 --- src/lib/elm_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index a67f66db9..e75c0c85f 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -1262,6 +1262,7 @@ elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coor EAPI void elm_object_focus(Evas_Object *obj) { + if (!elm_widget_can_focus_get(obj)) return; elm_widget_focus_set(obj, 1); } -- 2.34.1