bc46990616
I'm pretty sure we really got it this time!
36 lines
862 B
Diff
36 lines
862 B
Diff
From b6d3ff07044e3e48cbaf66ed4ae0fc17e10a910e Mon Sep 17 00:00:00 2001
|
|
From: Logan Rathbone <poprocks@gmail.com>
|
|
Date: Mon, 8 May 2023 01:16:37 -0400
|
|
Subject: [PATCH 1/2] util: remove fatal assert on exit if window invalid
|
|
GtkWindow
|
|
|
|
See https://gitlab.gnome.org/GNOME/zenity/-/merge_requests/25#note_1738825
|
|
---
|
|
src/util.c | 8 ++------
|
|
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/src/util.c b/src/util.c
|
|
index 8cfae934..85847df1 100644
|
|
--- a/src/util.c
|
|
+++ b/src/util.c
|
|
@@ -460,14 +460,10 @@ zenity_util_gapp_quit (GtkWindow *window, ZenityData *data)
|
|
if (data->exit_code != 0)
|
|
exit (data->exit_code);
|
|
|
|
- if (window)
|
|
- {
|
|
- g_assert (GTK_IS_WINDOW (window));
|
|
+ if (window && GTK_IS_WINDOW (window))
|
|
gtk_window_destroy (window);
|
|
- }
|
|
- else {
|
|
+ else
|
|
g_application_release (g_application_get_default ());
|
|
- }
|
|
}
|
|
|
|
int
|
|
--
|
|
2.40.1
|
|
|