Revision: 1655
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1655&view=rev
Author:   nadvornik
Date:     2009-04-21 21:16:32 +0000 (Tue, 21 Apr 2009)

Log Message:
-----------
fixed metadata.confirm_on_dir_change

Modified Paths:
--------------
    trunk/src/layout.c

Modified: trunk/src/layout.c
===================================================================
--- trunk/src/layout.c  2009-04-21 21:07:28 UTC (rev 1654)
+++ trunk/src/layout.c  2009-04-21 21:16:32 UTC (rev 1655)
@@ -938,6 +938,7 @@
 gboolean layout_set_fd(LayoutWindow *lw, FileData *fd)
 {
        gboolean have_file = FALSE;
+       gboolean dir_changed = TRUE;
 
        if (!layout_valid(&lw)) return FALSE;
 
@@ -965,6 +966,7 @@
                if (lw->dir_fd && strcmp(lw->dir_fd->path, base) == 0)
                        {
                        g_free(base);
+                       dir_changed = FALSE;
                        }
                else if (isdir(base))
                        {
@@ -1008,7 +1010,7 @@
                layout_image_set_index(lw, 0);
                }
 
-       if (options->metadata.confirm_on_dir_change)
+       if (options->metadata.confirm_on_dir_change && dir_changed)
                metadata_write_queue_confirm(NULL, NULL);
 
        return TRUE;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to