summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-file.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 51ba1978..9d915244 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -7278,17 +7278,13 @@ caja_file_get_trash_original_file (CajaFile *file)
{
GFile *location;
CajaFile *original_file;
- char *filename;
original_file = NULL;
if (file->details->trash_orig_path != NULL) {
- /* file name is stored in URL encoding */
- filename = g_uri_unescape_string (file->details->trash_orig_path, "");
- location = g_file_new_for_path (filename);
+ location = g_file_new_for_path (file->details->trash_orig_path);
original_file = caja_file_get (location);
- g_object_unref (G_OBJECT (location));
- g_free (filename);
+ g_object_unref (location);
}
return original_file;