diff options
author | Dennis Real <github@tildepipe.org> | 2012-12-19 17:35:46 +0100 |
---|---|---|
committer | Dennis Real <github@tildepipe.org> | 2012-12-19 17:35:46 +0100 |
commit | 98b0add5231e16a0d8c91eff929374a2131a8124 (patch) | |
tree | 130eed8ec87f2b041d869bd23e7f87f7893d3b69 /src/slideshow.c | |
parent | 39f3eab40c73ddc7d7058eadb136f58880538f0e (diff) | |
parent | da09e217570b4c1634a04d73f9d2f871afa2004a (diff) |
Merge branch 'master' of git://github.com/derf/feh
Diffstat (limited to 'src/slideshow.c')
-rw-r--r-- | src/slideshow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slideshow.c b/src/slideshow.c index 7dcf791..d79c859 100644 --- a/src/slideshow.c +++ b/src/slideshow.c @@ -555,6 +555,14 @@ void feh_filelist_image_remove(winwidget winwid, char do_delete) gib_list *doomed; doomed = current_file; + /* + * work around feh_list_jump exiting if cycle_once is enabled + * and no further files are left (we need to delete first) + */ + if (opt.cycle_once && ! doomed->next && do_delete) { + feh_file_rm_and_free(filelist, doomed); + exit(0); + } slideshow_change_image(winwid, SLIDE_NEXT, 0); if (do_delete) filelist = feh_file_rm_and_free(filelist, doomed); |