From 587b86aaabd7cf9475dbbfe502cad5bd02253d9d Mon Sep 17 00:00:00 2001 From: jorton Date: Tue, 11 Jun 2002 12:43:39 +0000 Subject: [PATCH] Fix main loop to not exit when the "Update" button is selected. --- test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.c b/test.c index 754da62..199b3eb 100644 --- a/test.c +++ b/test.c @@ -136,7 +136,7 @@ int main(void) { sprintf(buf, "Spinner: %c", *spinState); newtLabelSetText(timeLabel, buf); } - } while (es.reason != NEWT_EXIT_COMPONENT); + } while (es.reason != NEWT_EXIT_COMPONENT || es.u.co == b2); scaleVal = strdup(scaleVal); enr2 = strdup(enr2); -- 2.47.2