summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-13 22:13:11 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-13 22:13:11 +0100
commitff2cb2b7cbb92946541bd20779b9fda4936c05f0 (patch)
tree400503efcb5c89114a5390fb20f82be465e7e08a
parent6f696793d25a834f2ee6d796ee30f1e17d4fe122 (diff)
Print an error if 's' button (slidehsow_save_image) fails
-rw-r--r--src/slideshow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 97b1f92..0a70347 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -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);
}