From dc347c30393d4127365148170bb93369ff6b5013 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 26 Jul 2014 15:24:52 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialogs/file-open-dialog.c b/app/dialogs/file-open-dialog.c index ead83b40a6..a8fda31731 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);