genlist: Fixed a crash bug in case of calling a genlist_clear in a select callback...
authorJae Yong Hwang <j_yong.hwang@samsung.com>
Fri, 5 Sep 2014 16:47:55 +0000 (01:47 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Fri, 5 Sep 2014 16:47:55 +0000 (01:47 +0900)
commit4cedf6c0ebf41279bbbb587d3cbb0ad5db18c0d5
tree00ccc15c0c01f59c059d808891b78607621f5496
parentad3bf295996c9eea73514fb60f873b6ab64ca45e
genlist: Fixed a crash bug in case of calling a genlist_clear in a select callback function.

Summary:
If item select callback is elm_genlist_clear and genlist object have many item, elm_genlist_clear was broken.
This reason is due to incorrect code. In Old code, check the item focus  after an item was deleted. So, I changed the order of the code.
Before item was deleted, Check the item focus.
@fix

Test Plan: I revised the elementary_test code and tested with that.

Reviewers: raster, SanghyeonLee, seoz

Reviewed By: seoz

Subscribers: bluezery, SanghyeonLee

Differential Revision: https://phab.enlightenment.org/D1418
src/lib/elm_genlist.c