color-profile: Fix error check in finalize
We won't get G_IO_ERROR's but CD_CLIENT_ERROR's. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2622>
This commit is contained in:
parent
166ad34423
commit
20a98e6849
@ -130,7 +130,9 @@ meta_color_profile_finalize (GObject *object)
|
|||||||
color_profile->cd_profile_id,
|
color_profile->cd_profile_id,
|
||||||
&error);
|
&error);
|
||||||
if (!cd_profile &&
|
if (!cd_profile &&
|
||||||
!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
|
!g_error_matches (error,
|
||||||
|
CD_CLIENT_ERROR,
|
||||||
|
CD_CLIENT_ERROR_NOT_FOUND))
|
||||||
{
|
{
|
||||||
g_warning ("Failed to find colord profile %s: %s",
|
g_warning ("Failed to find colord profile %s: %s",
|
||||||
color_profile->cd_profile_id,
|
color_profile->cd_profile_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user