From 8b79bc33f37db12cbb672bdb47dcfeb0f2030bce Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 31 Aug 2011 16:51:58 +0200 Subject: feh_reload_image: Always die if reload failed This fixes a segfault in --reload when the image becomes unloadable while feh is running. Note that this does not affect --reload with more than one file: If the current image is removed, feh will simply jump to the next image. feh will only quit if the file still exists, but can no longer be loaded. --- src/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/menu.c') diff --git a/src/menu.c b/src/menu.c index 16e1c77..4a2c38f 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1302,7 +1302,7 @@ void feh_menu_cb(feh_menu * m, feh_menu_item * i, int action, void *data) winwidget_render_image(m->fehwin, 1, 0); break; case CB_RELOAD: - feh_reload_image(m->fehwin, 0, 0); + feh_reload_image(m->fehwin, 0); break; case CB_REMOVE: feh_filelist_image_remove(m->fehwin, 0); -- cgit v1.2.3