From: jorton Date: Tue, 11 Jun 2002 12:43:39 +0000 (+0000) Subject: Fix main loop to not exit when the "Update" button is selected. X-Git-Tag: r0-50-36~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=587b86aaabd7cf9475dbbfe502cad5bd02253d9d;p=thirdparty%2Fnewt.git Fix main loop to not exit when the "Update" button is selected. --- 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);