From 28926c57604b3c4796bce16e5bd8643d1a554290 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 21 Feb 2019 12:59:30 +0300 Subject: [PATCH] (find_parm_callback): get rid of extra type casting. Signed-off-by: Andrew Borodin --- src/filemanager/find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filemanager/find.c b/src/filemanager/find.c index 628e5f25c..603bce02b 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -504,7 +504,7 @@ find_parm_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, voi && !find_check_regexp (in_name->buffer)) { /* Don't stop the dialog */ - widget_set_state (WIDGET (h), WST_ACTIVE, TRUE); + widget_set_state (w, WST_ACTIVE, TRUE); message (D_ERROR, MSG_ERROR, _("Malformed regular expression")); widget_select (WIDGET (in_name)); return MSG_HANDLED; @@ -514,7 +514,7 @@ find_parm_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, voi if (content_regexp_cbox->state && !content_is_empty && !find_check_regexp (in_with->buffer)) { /* Don't stop the dialog */ - widget_set_state (WIDGET (h), WST_ACTIVE, TRUE); + widget_set_state (w, WST_ACTIVE, TRUE); message (D_ERROR, MSG_ERROR, _("Malformed regular expression")); widget_select (WIDGET (in_with)); return MSG_HANDLED;