Commit 1cbb5dd9 authored by Ondrej Holy's avatar Ondrej Holy

glocalfile: Fix error code when trash not found

G_IO_ERROR_NOT_SUPPORTED is used as parameter for g_set_io_error(),
however, errno is expected instead and thus error code is set to 0,
which is wrong. Let's use ENOTSUP instead.
parent 15cdcd2e
......@@ -1967,7 +1967,7 @@ g_local_file_trash (GFile *file,
{
g_set_io_error (error,
_("Unable to find toplevel directory to trash %s"),
file, G_IO_ERROR_NOT_SUPPORTED);
file, ENOTSUP);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment