mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 05:13:06 +02:00
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.
This commit is contained in:
parent
15cdcd2e0b
commit
1cbb5dd95f
@ -1967,7 +1967,7 @@ g_local_file_trash (GFile *file,
|
|||||||
{
|
{
|
||||||
g_set_io_error (error,
|
g_set_io_error (error,
|
||||||
_("Unable to find toplevel directory to trash %s"),
|
_("Unable to find toplevel directory to trash %s"),
|
||||||
file, G_IO_ERROR_NOT_SUPPORTED);
|
file, ENOTSUP);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user