diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-08-31 16:51:58 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-08-31 16:58:11 +0200 |
commit | 8b79bc33f37db12cbb672bdb47dcfeb0f2030bce (patch) | |
tree | 7fe42adc6685cdc4da86cad0e24a47ce035e1290 /src/signals.c | |
parent | 232302e9b8e81fe7c712d3659164dea3d007b0fe (diff) |
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.
Diffstat (limited to 'src/signals.c')
-rw-r--r-- | src/signals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signals.c b/src/signals.c index d5a6899..01cdf72 100644 --- a/src/signals.c +++ b/src/signals.c @@ -70,7 +70,7 @@ void feh_handle_signal(int signo) slideshow_change_image(winwid, SLIDE_PREV, 1); } else if (opt.multiwindow) { for (i = window_num - 1; i >= 0; i--) - feh_reload_image(windows[i], 0, 0); + feh_reload_image(windows[i], 0); } return; |