summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2014-01-16 04:10:38 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2014-01-16 04:10:38 +0900
commit1c1f95454c878332cc6aa61b43274f747ad22ae2 (patch)
tree32cf2e5b17fa8500c4b01b9e54fa1ea4da3f4c65
parentec698973246a9d6f9428ff0988fdff88627192c5 (diff)
panel: Check whether sd->content is NULL in _panel_toggle
sd->content can be NULL when elm_panel_hidden_set is called.
-rw-r--r--src/lib/elm_panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c
index e856a9497..4e43b7d1f 100644
--- a/src/lib/elm_panel.c
+++ b/src/lib/elm_panel.c
@@ -237,7 +237,7 @@ _panel_toggle(void *data EINA_UNUSED,
237 elm_layout_signal_emit(obj, "elm,action,hide", "elm"); 237 elm_layout_signal_emit(obj, "elm,action,hide", "elm");
238 sd->hidden = EINA_TRUE; 238 sd->hidden = EINA_TRUE;
239 evas_object_repeat_events_set(obj, EINA_TRUE); 239 evas_object_repeat_events_set(obj, EINA_TRUE);
240 if (elm_widget_focus_get(sd->content)) 240 if (sd->content && elm_widget_focus_get(sd->content))
241 { 241 {
242 elm_widget_focused_object_clear(obj); 242 elm_widget_focused_object_clear(obj);
243 elm_widget_focus_steal(obj); 243 elm_widget_focus_steal(obj);