From 11b1447432862f78197c5368e4e24da7a9d300b3 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 24 Oct 2002 20:23:21 +0000 Subject: [PATCH] * filegui.c (check_progress_buttons): Reinitialize ret_value to avoid old values after incomplete events. Reported by Dmitry Semyonov --- src/ChangeLog | 6 ++++++ src/filegui.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 255d04812..41dfa536c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-10-24 Pavel Roskin + + * filegui.c (check_progress_buttons): Reinitialize ret_value to + avoid old values after incomplete events. + Reported by Dmitry Semyonov + 2002-10-24 Andrew V. Samoilov * man2hlp.c (handle_link): Treat link name after \& as regular diff --git a/src/filegui.c b/src/filegui.c index 4fc08264e..a6256955b 100644 --- a/src/filegui.c +++ b/src/filegui.c @@ -170,6 +170,10 @@ check_progress_buttons (FileOpContext *ctx) c = get_event (&event, 0, 0); if (c == EV_NONE) return FILE_CONT; + + /* Reinitialize to avoid old values after incomplete events */ + ui->op_dlg->ret_value = FILE_CONT; + dlg_process_event (ui->op_dlg, c, &event); switch (ui->op_dlg->ret_value) { case FILE_SKIP: