mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
check_dialog: compare return value from widget handlers explicitly
Explicitly compare the value that is returned by the widget handler against EVENT_NOT_PROCESSED rather than relying on the fact that EVENT_NOT_PROCESSED is equal to 1. ffeedbdc5045a6a5db2bc75ecaab56bfe46c80ea
This commit is contained in:
parent
5605a046a7
commit
28261fcfba
@ -474,7 +474,8 @@ check_dialog(struct dialog_data *dlg_data)
|
||||
continue;
|
||||
|
||||
if (widget_data->widget->handler &&
|
||||
widget_data->widget->handler(dlg_data, widget_data)) {
|
||||
widget_data->widget->handler(dlg_data, widget_data)
|
||||
== EVENT_NOT_PROCESSED) {
|
||||
select_widget(dlg_data, widget_data);
|
||||
redraw_dialog(dlg_data, 0);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user