* filegui.c (check_progress_buttons): Reinitialize ret_value to

avoid old values after incomplete events.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
This commit is contained in:
Pavel Roskin 2002-10-24 20:23:21 +00:00
parent 89ba2277a9
commit 11b1447432
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-10-24 Pavel Roskin <proski@gnu.org>
* filegui.c (check_progress_buttons): Reinitialize ret_value to
avoid old values after incomplete events.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2002-10-24 Andrew V. Samoilov <sav@bcs.zp.ua>
* man2hlp.c (handle_link): Treat link name after \& as regular

View File

@ -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: