forked from enlightenment/rage
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.
This commit is contained in:
parent
f13e49f97f
commit
9dd7919981
|
@ -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…
Reference in New Issue