From 3280b44471d54fc9fe32989264eb92543a94e4bd Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 17 Oct 2016 21:08:31 +0200 Subject: [PATCH] CMsgBox: ensure reset of progress value on used key --- src/gui/widget/msgbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index bf8607f6e..dfe855cad 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -271,8 +271,10 @@ int CMsgBox::exec() refreshFoot(); //refresh timeout on any pressed navi key! This resets current timeout end to the initial value - if (timeout > 0) + if (timeout > 0){ + timeout_pb->setValues(0, timeout); timeoutEnd = CRCInput::calcTimeoutEnd(timeout); + } dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button); } //***action buttons without preselection***