From 8bf410744a224f49696be10272aa4164a7fc4701 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Wed, 16 Nov 2016 22:32:29 +0000 Subject: Reset slideshow timer when image changed via 'x' When the user hits left/right to change image, the time left until the slideshow changes images is reset. If the user changes image by closing the current image, the timer is not reset. This patch resolves that. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 21fbc77..93d75b4 100644 --- a/src/main.c +++ b/src/main.c @@ -417,6 +417,8 @@ int main(int argc, char** argv) case SDLK_x: if(!e.key.repeat) { imv_navigator_remove(&nav, imv_navigator_selection(&nav)); + /* reset slideshow delay */ + delay_msec = 0; } break; case SDLK_f: -- cgit v1.2.3