Modified dialog initialization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2009-11-12 11:54:00 +03:00
parent 62f0f101d7
commit 5ab573263a
2 changed files with 2 additions and 4 deletions

View File

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

View File

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