Skip to content

Commit

Permalink
rootform
Browse files Browse the repository at this point in the history
  • Loading branch information
freakout42 committed Sep 20, 2024
1 parent 5d55d54 commit c7e463b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions runform/form.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ for (i=0; i<numpage; i++) p[i].destroy();
/* set-up screen and pages and execute through the event dispatcher */
int Form::run() {
int i, s;
f = this;
for (i=0; i<numpage; i++) p[i].create();
lastkey = -1;
while (!(s = u.dispatch())) {
Expand Down
10 changes: 5 additions & 5 deletions runform/runform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ if (y.init()) return 6;

// create load run and destroy the form
rootform = new Form();
f = rootform;
if (f->fill(form_id)) usage(5);
if ((s = f->run()) < 0) usage(6);
f->clear();
delete(f);
if (rootform->fill(form_id)) usage(5);
if ((s = rootform->run()) < 0) usage(6);
rootform->clear();
delete(rootform);


// cleanup screen db connections and logger
y.closedisplay();
Expand Down

0 comments on commit c7e463b

Please sign in to comment.