mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Ticket #2608: mc hangs while switching to opened screen.
The bug was introduced in 6ad4b2466b
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c8c8c0da11
commit
08f2593ae9
@ -1220,11 +1220,12 @@ init_dlg (Dlg_head * h)
|
|||||||
dlg_read_history (h);
|
dlg_read_history (h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h->state = DLG_ACTIVE;
|
||||||
|
|
||||||
/* Select the first widget that takes focus */
|
/* Select the first widget that takes focus */
|
||||||
while (h->current != NULL && !dlg_focus (h))
|
while (h->current != NULL && !dlg_focus (h))
|
||||||
h->current = dlg_widget_next (h, h->current);
|
h->current = dlg_widget_next (h, h->current);
|
||||||
|
|
||||||
h->state = DLG_ACTIVE;
|
|
||||||
dlg_redraw (h);
|
dlg_redraw (h);
|
||||||
|
|
||||||
h->ret_value = 0;
|
h->ret_value = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user