From 8d2fe823a3ba50fd6fe9a1ac74e172144bbec05d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 7 Aug 2023 15:27:49 -0700 Subject: [PATCH] window: don't let window disposal cause app exit with greeter If the greeter was shown and the window got closed, the whole app could exit without this. --- src/sysprof/sysprof-window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sysprof/sysprof-window.c b/src/sysprof/sysprof-window.c index b6a7c8bc..df1c8183 100644 --- a/src/sysprof/sysprof-window.c +++ b/src/sysprof/sysprof-window.c @@ -209,6 +209,8 @@ sysprof_window_record_capture_action (GtkWidget *widget, greeter = g_object_new (SYSPROF_TYPE_GREETER, "transient-for", self, NULL); + gtk_application_add_window (GTK_APPLICATION (SYSPROF_APPLICATION_DEFAULT), + GTK_WINDOW (greeter)); gtk_window_present (GTK_WINDOW (greeter)); }