forked from enlightenment/enlightenment
ibar: add some safeguards to make sure an icon has an exe_current
before trying to get list data from it. NB: Safeguards added to stop crashes from happening during a mouse_wheel (reported from Guy Martin). Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
64683742c4
commit
8c21a8a0a0
|
@ -1691,8 +1691,11 @@ _ibar_cb_icon_wheel(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
|
|||
|
||||
if (!sel)
|
||||
{
|
||||
exe = eina_list_data_get(ic->exe_current);
|
||||
sel = eina_list_data_get(exe->clients);
|
||||
if (ic->exe_current)
|
||||
{
|
||||
if ((exe = eina_list_data_get(ic->exe_current)))
|
||||
sel = eina_list_data_get(exe->clients);
|
||||
}
|
||||
}
|
||||
|
||||
if (sel)
|
||||
|
|
Loading…
Reference in New Issue