Lines 835-850
Link Here
|
835 |
|
835 |
|
836 |
if (dest_info != NULL) |
836 |
if (dest_info != NULL) |
837 |
{ |
837 |
{ |
838 |
if (!g_file_info_get_attribute_boolean (dest_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) |
838 |
if (g_file_info_get_attribute_boolean (dest_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE) != NULL) |
839 |
{ |
839 |
{ |
840 |
g_set_error (error, G_IO_ERROR, G_IO_ERROR_READ_ONLY, |
840 |
if (!g_file_info_get_attribute_boolean (dest_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) |
841 |
_("Error while copying to \"%s\": The destination is read-only"), |
841 |
{ |
842 |
dest_name); |
842 |
g_set_error (error, G_IO_ERROR, G_IO_ERROR_READ_ONLY, |
|
|
843 |
_("Error while copying to \"%s\": The destination is read-only"), |
844 |
dest_name); |
843 |
|
845 |
|
844 |
succeed = FALSE; |
846 |
succeed = FALSE; |
845 |
} |
847 |
} |
846 |
|
848 |
} |
847 |
g_object_unref (G_OBJECT (dest_info)); |
849 |
g_object_unref (G_OBJECT (dest_info)); |
848 |
} |
850 |
} |
849 |
} |
851 |
} |
850 |
|
852 |
|