Merge branch '2608_switch_screen_hang'

* 2608_switch_screen_hang:
  Ticket #2608: mc hangs while switching to opened screen.
This commit is contained in:
Andrew Borodin 2012-04-09 21:16:46 +04:00
commit 95f4d0e57f
1 changed files with 2 additions and 1 deletions

View File

@ -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;