summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-08-21 20:01:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-08-21 20:01:30 +0200
commit6eface96a8525d9c1207aca2c8b98f7933566a1c (patch)
tree1e3a01503a87f6674a3de0fb1c72728d31670b3c /src
parent34551ca38e1edbd027589a78f86e379d4932a8d8 (diff)
reload timer: always call prepare_filelist for sorting etc (closes #200)
Diffstat (limited to 'src')
-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;