Kill 2 more warnings -miguel

This commit is contained in:
Miguel de Icaza 1999-03-09 04:55:49 +00:00
parent cb800625fc
commit 141653c3b8
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,8 @@
1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
* file.c (panel_operate): Always create the ctx->ui. Federico,
can you see if this change is correct from your point of view?
* cmd.c (edit_symlink_cmd): Small fix to improve the messages
printed.

View File

@ -1890,10 +1890,11 @@ panel_operate (void *source_panel, FileOperation operation, char *thedefault, in
/* Now, let's do the job */
file_op_context_create_ui (ctx, operation, 1);
/* This code is only called by the tree and panel code */
if (only_one){
/* We now have ETA in all cases */
file_op_context_create_ui (ctx, operation, 1);
/* One file: FIXME mc_chdir will take user out of any vfs */
if (operation != OP_COPY && get_current_type () == view_tree)
@ -1993,9 +1994,6 @@ panel_operate (void *source_panel, FileOperation operation, char *thedefault, in
}
}
#endif
/* We now have ETA in all cases */
file_op_context_create_ui (ctx, operation, 1);
/* Loop for every file, perform the actual copy operation */
for (i = 0; i < panel->count; i++) {
if (!panel->dir.list [i].f.marked)