Skip to content

Commit

Permalink
file-operations: fix copying from the trash
Browse files Browse the repository at this point in the history
  • Loading branch information
leigh123linux authored and mtwebster committed Dec 9, 2019
1 parent fda6257 commit 0599ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnemo-private/nemo-file-operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,7 @@ get_target_file_with_custom_name (GFile *src,

/* if file is being restored from trash make sure it uses its original name */
if (g_file_has_uri_scheme (src, "trash")) {
copyname = g_strdup (g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_TRASH_ORIG_PATH));
copyname = g_path_get_basename (g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_TRASH_ORIG_PATH));
}

if (copyname == NULL) {
Expand Down

0 comments on commit 0599ae2

Please sign in to comment.