summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eom-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index da0f3a2..eacdb0a 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -2523,12 +2523,13 @@ eom_window_unsaved_images_confirm (EomWindow *window)
continue;
if (eom_image_is_modified (image)) {
- list = g_list_append (list, image);
+ list = g_list_prepend (list, image);
}
} while (gtk_tree_model_iter_next (GTK_TREE_MODEL (priv->store), &iter));
}
- if (list) {
+ if (list) {
+ list = g_list_reverse (list);
dialog = eom_close_confirmation_dialog_new (GTK_WINDOW (window),
list);