app: fix opening multiple files in file_open_dialog_response()

Don't loop infinitely around the list's second file.
This commit is contained in:
Michael Natterer 2014-07-26 15:24:52 +02:00
parent e618a2866c
commit dc347c3039
1 changed files with 1 additions and 1 deletions

View File

@ -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);