mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Modified dialog initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
62f0f101d7
commit
5ab573263a
@ -834,13 +834,12 @@ init_dlg (Dlg_head * h)
|
||||
h->callback (h, NULL, DLG_INIT, 0, NULL);
|
||||
dlg_broadcast_msg (h, WIDGET_INIT, 0);
|
||||
|
||||
dlg_redraw (h);
|
||||
|
||||
/* Select the first widget that takes focus */
|
||||
while (h->current != NULL && !dlg_focus (h))
|
||||
h->current = h->current->next;
|
||||
|
||||
/* Redraw the screen */
|
||||
dlg_redraw (h);
|
||||
|
||||
h->ret_value = 0;
|
||||
h->running = 1;
|
||||
}
|
||||
|
@ -363,7 +363,6 @@ file_op_context_create_ui (FileOpContext * ctx, gboolean with_eta,
|
||||
/* We will manage the dialog without any help, that's why
|
||||
we have to call init_dlg */
|
||||
init_dlg (ui->op_dlg);
|
||||
ui->op_dlg->running = 1;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user