netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=9dd7919981cabe74fad2747a5ab6969db3555b8f

commit 9dd7919981cabe74fad2747a5ab6969db3555b8f
Author: Alastair Poole <nets...@gmail.com>
Date:   Sat Jan 30 11:14:37 2021 +0000

    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.
---
 src/bin/main.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 4481984..1cfe68a 100644
--- a/src/bin/main.c
+++ b/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

-- 


Reply via email to