mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Do return EVENT_NOT_PROCESSED from hierbox_ev_init and hierbox_ev_abort
hierbox_ev_init and hierbox_ev_abort must return EVENT_NOT_PROCESSED
so that the generic dialog code runs and initialises the widgets and stuff.
This commit reverts commit f8310de64b
to fix
a segfault and also adds comments to explain the unintuitive return value.
This commit is contained in:
parent
18649c8988
commit
a645bb2ead
@ -235,7 +235,9 @@ hierbox_ev_init(struct dialog_data *dlg_data)
|
||||
litem->visible = 1;
|
||||
}
|
||||
|
||||
return EVENT_PROCESSED;
|
||||
/* Return this so that the generic dialog code will run and initialise
|
||||
* the widgets and stuff. */
|
||||
return EVENT_NOT_PROCESSED;
|
||||
}
|
||||
|
||||
static widget_handler_status_T
|
||||
@ -259,7 +261,9 @@ hierbox_ev_abort(struct dialog_data *dlg_data)
|
||||
}
|
||||
}
|
||||
|
||||
return EVENT_PROCESSED;
|
||||
/* Return this so that the generic dialog code will run and initialise
|
||||
* the widgets and stuff. */
|
||||
return EVENT_NOT_PROCESSED;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user