elementary: remove warning and work around insane ecore_thread_check bug.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Jun 2011 10:26:06 +0000 (10:26 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 27 Jun 2011 10:26:06 +0000 (10:26 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60725 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_fileselector.c

index cbe2f1b..0f11672 100644 (file)
@@ -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);