1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: Fix for bug: incorrect result given for <no> selected by ESC pressed in whiptail
Last-Updated: 2014-06-11
Bug-Debian: https://bugs.debian.org/#665784
Forwarded: no
Author: Alastair McKinstry <mckinstry@debian.org>
Index: newt-0.52.24/dialogboxes.c
===================================================================
--- newt-0.52.24.orig/dialogboxes.c
+++ newt-0.52.24/dialogboxes.c
@@ -590,7 +590,7 @@ int messageBox(const char * text, int he
answer = newtFormGetCurrent(form);
- if (answer == no)
+ if ((rc == DLG_OKAY) && (answer == no))
rc = DLG_CANCEL;
}
else {
|