aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2016-11-16 22:32:29 +0000
committerHarry Jeffery <harry@exec64.co.uk>2016-11-16 22:32:29 +0000
commit8bf410744a224f49696be10272aa4164a7fc4701 (patch)
tree3bd0bea9be36e9b42a2b0695475d28069f1c23b3
parent6d8a963c9be88efe71eef814f9e17739de28068c (diff)
downloadimv-8bf410744a224f49696be10272aa4164a7fc4701.tar.gz
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.
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
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: