From 20a98e6849a2e4bf0c2a01e002182ebb59b46a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 13 Sep 2022 18:19:40 +0200 Subject: [PATCH] color-profile: Fix error check in finalize We won't get G_IO_ERROR's but CD_CLIENT_ERROR's. Part-of: --- src/backends/meta-color-profile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backends/meta-color-profile.c b/src/backends/meta-color-profile.c index c500e57e6..0a72583de 100644 --- a/src/backends/meta-color-profile.c +++ b/src/backends/meta-color-profile.c @@ -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,