projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec69897
)
panel: Check whether sd->content is NULL in _panel_toggle
author
Ryuan Choi
<ryuan.choi@gmail.com>
Wed, 15 Jan 2014 19:10:38 +0000
(
04:10
+0900)
committer
Ryuan Choi
<ryuan.choi@gmail.com>
Wed, 15 Jan 2014 19:10:38 +0000
(
04:10
+0900)
sd->content can be NULL when elm_panel_hidden_set is called.
src/lib/elm_panel.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_panel.c
b/src/lib/elm_panel.c
index e856a9497630825da50187fe76ffec3356bf1425..4e43b7d1fc6f67587c1c425ef90830469b9b6852 100644
(file)
--- a/
src/lib/elm_panel.c
+++ b/
src/lib/elm_panel.c
@@
-237,7
+237,7
@@
_panel_toggle(void *data EINA_UNUSED,
elm_layout_signal_emit(obj, "elm,action,hide", "elm");
sd->hidden = EINA_TRUE;
evas_object_repeat_events_set(obj, EINA_TRUE);
- if (elm_widget_focus_get(sd->content))
+ if (
sd->content &&
elm_widget_focus_get(sd->content))
{
elm_widget_focused_object_clear(obj);
elm_widget_focus_steal(obj);