Skip to content
Snippets Groups Projects
Commit 63db7027 authored by derf's avatar derf
Browse files

Merge pull request #185 from shiponi/master

slideshow: When removing last image, stay on the last image
parents 578a92d5 17ee2394
No related branches found
No related tags found
No related merge requests found
...@@ -621,7 +621,12 @@ void feh_filelist_image_remove(winwidget winwid, char do_delete) ...@@ -621,7 +621,12 @@ void feh_filelist_image_remove(winwidget winwid, char do_delete)
feh_file_rm_and_free(filelist, doomed); feh_file_rm_and_free(filelist, doomed);
exit(0); exit(0);
} }
slideshow_change_image(winwid, SLIDE_NEXT, 0); if (doomed->next) {
slideshow_change_image(winwid, SLIDE_NEXT, 0);
}
else {
slideshow_change_image(winwid, SLIDE_PREV, 0);
}
if (do_delete) if (do_delete)
filelist = feh_file_rm_and_free(filelist, doomed); filelist = feh_file_rm_and_free(filelist, doomed);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment