Commit ff2cb2b7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Print an error if 's' button (slidehsow_save_image) fails

parent 6f696793
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -467,6 +467,7 @@ void feh_filelist_image_remove(winwidget winwid, char do_delete)
void slideshow_save_image(winwidget win)
{
	char *tmpname;
	Imlib_Load_Error err;

	D_ENTER(4);
	if (win->file) {
@@ -483,7 +484,10 @@ void slideshow_save_image(winwidget win)
	if (!opt.quiet)
		printf("saving image to filename '%s'\n", tmpname);

	gib_imlib_save_image(win->im, tmpname);
	gib_imlib_save_image_with_error_return(win->im, tmpname, &err);
	if (err)
		weprintf("Can't save image %s:", tmpname);

	free(tmpname);
	D_RETURN_(4);
}