1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gdnd.c (perform_action): Fixed a pair of incorrect braces.
	Files were not being operated on because of this.
This commit is contained in:
Miguel de Icaza 1998-12-14 01:36:24 +00:00
parent 3b03faaa2e
commit accb3df6e6
2 changed files with 29 additions and 25 deletions

View File

@ -1,3 +1,8 @@
1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdnd.c (perform_action): Fixed a pair of incorrect braces.
Files were not being operated on because of this.
1998-12-12 Owen Taylor <otaylor@gtk.org>
* gscreen.c (panel_tree_drag_motion): Doubled timeout

View File

@ -201,32 +201,31 @@ perform_action (GList *names, GdkDragAction action, char *destdir)
/* FIXME: this error message sucks */
if (file_error (_("Could not stat %s\n%s"), dest_name) != FILE_RETRY)
result = 0;
else {
long count = 0;
double bytes = 0;
} else {
long count = 0;
double bytes = 0;
if (S_ISDIR (s.st_mode)) {
if (action == GDK_ACTION_COPY)
copy_dir_dir (
name, dest_name,
TRUE, FALSE,
FALSE, FALSE,
&count, &bytes);
else
move_dir_dir (
name, dest_name,
&count, &bytes);
} else {
if (action == GDK_ACTION_COPY)
copy_file_file (
name, dest_name,
TRUE,
&count, &bytes);
else
move_file_file (
name, dest_name,
&count, &bytes);
}
if (S_ISDIR (s.st_mode)) {
if (action == GDK_ACTION_COPY)
copy_dir_dir (
name, dest_name,
TRUE, FALSE,
FALSE, FALSE,
&count, &bytes);
else
move_dir_dir (
name, dest_name,
&count, &bytes);
} else {
if (action == GDK_ACTION_COPY)
copy_file_file (
name, dest_name,
TRUE,
&count, &bytes);
else
move_file_file (
name, dest_name,
&count, &bytes);
}
}
} while (result != 0);