Hey,

I get a hang when exiting geeqie.  I'm not exactly sure what the code does
there, but it so happens that none of the directories exist which
editor_get_desktop_files() tries.  As a result layout_editors_desktop_files
stays NULL and layout_editors_reload_idle_id stays whatever number it was.  As a
result layout_editors_reload_finish() keeps looping.

Patch enclosed, but i guess it will get mangled due to gmane :/

cheers
  simon


diff --git a/src/layout_util.c b/src/layout_util.c
index b853852..e4f6fa5 100644
--- a/src/layout_util.c
+++ b/src/layout_util.c
@@ -1949,7 +1949,14 @@ static gboolean layout_editors_reload_idle_cb(gpointer
 data)
                {
                DEBUG_1("%s layout_editors_reload_idle_cb: get_desktop_files",
 get_exec_time());
                layout_editors_desktop_files = editor_get_desktop_files();
-               return TRUE;
+               if (!layout_editors_desktop_files)
+                       {
+                       layout_editors_reload_idle_id = -1;
+                       return FALSE;
+                       }
+               else    {
+                       return TRUE;
+                       }
                }
        
        editor_read_desktop_file(layout_editors_desktop_files->data);



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to