From 28261fcfba327bb3ec060bfbfb77741bd99f135f Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Fri, 13 Oct 2006 09:00:54 +0000 Subject: [PATCH] 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 --- src/bfu/dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bfu/dialog.c b/src/bfu/dialog.c index 34e602667..7795dd153 100644 --- a/src/bfu/dialog.c +++ b/src/bfu/dialog.c @@ -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;