[gimp] app: fix opening multiple files in file_open_dialog_response()



commit dc347c30393d4127365148170bb93369ff6b5013
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jul 26 15:24:52 2014 +0200

    app: fix opening multiple files in file_open_dialog_response()
    
    Don't loop infinitely around the list's second file.

 app/dialogs/file-open-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/dialogs/file-open-dialog.c b/app/dialogs/file-open-dialog.c
index ead83b4..a8fda31 100644
--- a/app/dialogs/file-open-dialog.c
+++ b/app/dialogs/file-open-dialog.c
@@ -135,7 +135,7 @@ file_open_dialog_response (GtkWidget *open_dialog,
   if (! dialog->open_as_layers)
     gtk_window_set_transient_for (GTK_WINDOW (open_dialog), NULL);
 
-  for (list = files; list; list = g_slist_next (files))
+  for (list = files; list; list = g_slist_next (list))
     {
       GFile *file = list->data;
       gchar *path = g_file_get_path (file);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]