summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/slideshow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 7ff4f39..87ab29e 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -115,6 +115,8 @@ void cb_reload_timer(void *data)
eprintf("No files found to reload.");
}
+ feh_prepare_filelist();
+
/* find the previously current file */
for (l = filelist; l; l = l->next)
if (strcmp(FEH_FILE(l->data)->filename, current_filename) == 0) {
@@ -124,8 +126,6 @@ void cb_reload_timer(void *data)
free(current_filename);
- filelist = gib_list_first(gib_list_reverse(filelist));
-
if (!current_file)
current_file = filelist;
w->file = current_file;