mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(button_callback): clean up unneeded type casting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
1d2cbee320
commit
6310e07745
@ -68,7 +68,7 @@ button_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
|
|||||||
* when hotkeys are sent to all widgets before the key is
|
* when hotkeys are sent to all widgets before the key is
|
||||||
* handled by the current widget.
|
* handled by the current widget.
|
||||||
*/
|
*/
|
||||||
if (parm == '\n' && WIDGET (h->current->data) == WIDGET (b))
|
if (parm == '\n' && WIDGET (h->current->data) == w)
|
||||||
{
|
{
|
||||||
send_message (w, sender, MSG_KEY, ' ', data);
|
send_message (w, sender, MSG_KEY, ' ', data);
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
Loading…
Reference in New Issue
Block a user