From: cedric Date: Mon, 27 Jun 2011 10:26:06 +0000 (+0000) Subject: elementary: remove warning and work around insane ecore_thread_check bug. X-Git-Tag: REL_F_I9500_20120323_1~17^2~2482 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe6138063a1b8c3e8905d3d03c083acaf0040d20;p=framework%2Fuifw%2Felementary.git elementary: remove warning and work around insane ecore_thread_check bug. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60725 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c index cbe2f1b..0f11672 100644 --- a/src/lib/elc_fileselector.c +++ b/src/lib/elc_fileselector.c @@ -142,7 +142,8 @@ _del_hook(Evas_Object *obj) if (!wd) return; #ifdef HAVE_EIO - eio_file_cancel(wd->current); + if (wd->current) + eio_file_cancel(wd->current); #endif wd->files_list = NULL; @@ -649,7 +650,11 @@ _main_cb(void *data, Eio_File *handler, const Eina_File_Direct_Info *info __UNUS if (eio_file_check(handler)) return ; - if (!wr->wd->files_list || !wr->wd->files_grid) return ; + if (!wr->wd->files_list || !wr->wd->files_grid || wr->wd->current != handler) + { + eio_file_cancel(handler); + return ; + } _signal_first(wr);