summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2013-12-15 13:36:20 -0500
committerMike Blumenkrantz <zmike@samsung.com>2013-12-15 13:36:55 -0500
commit64b8da15a41b89eed9b69fbed71da66e9cd110d1 (patch)
treef3384708dab3b85a363c9a202af176236b06ddfd /src
parent7c2d0c7bddec130e99f1160fcf00fa5da3cd510a (diff)
don't crash when ibar mouse rolling
T666 (wtf)
Diffstat (limited to 'src')
-rw-r--r--src/modules/ibar/e_mod_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 95cc406bf..ece59602f 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -1333,7 +1333,7 @@ _ibar_cb_icon_wheel(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
1333 exe = eina_list_data_get(ic->exe_current); 1333 exe = eina_list_data_get(ic->exe_current);
1334 if (ev->z < 0) 1334 if (ev->z < 0)
1335 { 1335 {
1336 if (cur->exe_inst == exe) 1336 if (cur && (cur->exe_inst == exe))
1337 { 1337 {
1338 l = eina_list_data_find_list(exe->borders, cur); 1338 l = eina_list_data_find_list(exe->borders, cur);
1339 if (l) sel = eina_list_data_get(eina_list_next(l)); 1339 if (l) sel = eina_list_data_get(eina_list_next(l));
@@ -1347,7 +1347,7 @@ _ibar_cb_icon_wheel(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
1347 } 1347 }
1348 else if (ev->z > 0) 1348 else if (ev->z > 0)
1349 { 1349 {
1350 if (cur->exe_inst == exe) 1350 if (cur && (cur->exe_inst == exe))
1351 { 1351 {
1352 l = eina_list_data_find_list(exe->borders, cur); 1352 l = eina_list_data_find_list(exe->borders, cur);
1353 if (l) sel = eina_list_data_get(eina_list_prev(l)); 1353 if (l) sel = eina_list_data_get(eina_list_prev(l));