mirror of https://github.com/MidnightCommander/mc
Merge branch '2608_switch_screen_hang'
* 2608_switch_screen_hang: Ticket #2608: mc hangs while switching to opened screen.
This commit is contained in:
commit
95f4d0e57f
|
@ -1220,11 +1220,12 @@ init_dlg (Dlg_head * h)
|
|||
dlg_read_history (h);
|
||||
}
|
||||
|
||||
h->state = DLG_ACTIVE;
|
||||
|
||||
/* Select the first widget that takes focus */
|
||||
while (h->current != NULL && !dlg_focus (h))
|
||||
h->current = dlg_widget_next (h, h->current);
|
||||
|
||||
h->state = DLG_ACTIVE;
|
||||
dlg_redraw (h);
|
||||
|
||||
h->ret_value = 0;
|
||||
|
|
Loading…
Reference in New Issue