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:
Jonas Ådahl 2022-09-13 18:19:40 +02:00 committed by Marge Bot
parent 166ad34423
commit 20a98e6849

View File

@ -130,7 +130,9 @@ meta_color_profile_finalize (GObject *object)
color_profile->cd_profile_id,
&error);
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",
color_profile->cd_profile_id,