[file-roller] fixed bug when pasting files in another path
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] fixed bug when pasting files in another path
- Date: Mon, 30 Jan 2012 12:38:28 +0000 (UTC)
commit 25eea1c2b80200af7c166fa317bcefbc4874de7d
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jan 30 13:34:16 2012 +0100
fixed bug when pasting files in another path
remove the leading directory separator from the original name
before moving the file in the new location.
src/fr-window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index a9ec234..3aab45f 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7760,6 +7760,8 @@ add_pasted_files (FrWindow *window,
fr_process_begin_command (window->archive->process, "mv");
fr_process_set_working_dir (window->archive->process, data->tmp_dir);
fr_process_add_arg (window->archive->process, "-f");
+ if (old_name[0] == '/')
+ old_name = old_name + 1;
fr_process_add_arg (window->archive->process, old_name);
fr_process_add_arg (window->archive->process, new_name);
fr_process_end_command (window->archive->process);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]