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_I9200_20110722_1~8^2~50^2~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95e66fa284766381f100bf371bebd3c61fc9c286;p=framework%2Fuifw%2Felementary.git elementary: remove warning and work around insane ecore_thread_check bug. git-svn-id: https://svn.enlightenment.org/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);