]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
Fix main loop to not exit when the "Update" button is selected.
authorjorton <jorton>
Tue, 11 Jun 2002 12:43:39 +0000 (12:43 +0000)
committerjorton <jorton>
Tue, 11 Jun 2002 12:43:39 +0000 (12:43 +0000)
test.c

diff --git a/test.c b/test.c
index 754da624014d072006a2ba23f031fcef3f80bd3c..199b3eb49432325a8549337eff8878adc6f3fd4e 100644 (file)
--- 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);