sysprof: fix about sysprof window error in greeter window

This commit is contained in:
2025-01-26 17:00:11 +05:30
parent 5151345ef4
commit 9ae36808f2

View File

@ -148,6 +148,13 @@ sysprof_about (GSimpleAction *action,
windows = gtk_application_get_windows (app); 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) for (; windows != NULL; windows = windows->next)
{ {
if (SYSPROF_IS_WINDOW (windows->data)) if (SYSPROF_IS_WINDOW (windows->data))