From 9ae36808f27c1ef00c1d8557d10a99c5ccae2276 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Sun, 26 Jan 2025 17:00:11 +0530 Subject: [PATCH] sysprof: fix about sysprof window error in greeter window --- src/sysprof/sysprof-application.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sysprof/sysprof-application.c b/src/sysprof/sysprof-application.c index 1eda2d31..c3334d95 100644 --- a/src/sysprof/sysprof-application.c +++ b/src/sysprof/sysprof-application.c @@ -147,6 +147,13 @@ sysprof_about (GSimpleAction *action, g_assert (variant == NULL); windows = gtk_application_get_windows (app); + + if (windows == NULL) + { + g_warning ("No windows found to show about dialog"); + } + else + best_toplevel = windows->data; for (; windows != NULL; windows = windows->next) {