[sysprof] libsysprof-ui: dont warn for not-supported error



commit 0c698f2da16504bf3e15d29d7cb3afdcee5da3d9
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 26 10:46:08 2020 -0800

    libsysprof-ui: dont warn for not-supported error

 src/libsysprof-ui/sysprof-display.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c
index 5a5de3f..835e3ea 100644
--- a/src/libsysprof-ui/sysprof-display.c
+++ b/src/libsysprof-ui/sysprof-display.c
@@ -624,7 +624,10 @@ sysprof_display_present_cb (GObject      *object,
   g_assert (G_IS_TASK (task));
 
   if (!sysprof_aid_present_finish (aid, result, &error))
-    g_warning ("Failed to present aid %s: %s", G_OBJECT_TYPE_NAME (aid), error->message);
+    {
+      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
+        g_warning ("Failed to present aid %s: %s", G_OBJECT_TYPE_NAME (aid), error->message);
+    }
 
   n_active = g_task_get_task_data (task);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]