main: elm_quit if no media found with recursive add.

This solves an issue whereby a user who associates a file:// uri
with rage, can open a link. A slow traversal *can* mean a long
and often unexpected delayed open of Rage.
v-0.4.0
Alastair Poole 3 years ago
parent f13e49f97f
commit 9dd7919981
  1. 8
      src/bin/main.c

@ -104,10 +104,16 @@ _cb_start_recursion(void *data, Ecore_Thread *thread EINA_UNUSED)
static void
_cb_end_recursion(void *data, Ecore_Thread *thread EINA_UNUSED)
{
Recursion_Data *recursion = data;
Recursion_Data *recursion;
Eina_Bool have_media;
recursion = data;
have_media = recursion->have_media_files;
free(recursion->realpath);
free(recursion);
if (!have_media)
elm_exit();
}
static void

Loading…
Cancel
Save