-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #301 - Apply patch for crash on exit
Signed-off-by: Hubert Figuière <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 0a67fb0484001e7a0bf14eb73c67f9e74325d524 Mon Sep 17 00:00:00 2001 | ||
From: Luca Bacci <[email protected]> | ||
Date: Tue, 2 Apr 2024 11:31:08 +0200 | ||
Subject: [PATCH] QuitDialog: disconnect signal handler on dialog destroy | ||
|
||
...rather than finalize. | ||
|
||
Fixes #10785 | ||
--- | ||
app/dialogs/quit-dialog.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/app/dialogs/quit-dialog.c b/app/dialogs/quit-dialog.c | ||
index 11737f9ad51..435ea4961a3 100644 | ||
--- a/app/dialogs/quit-dialog.c | ||
+++ b/app/dialogs/quit-dialog.c | ||
@@ -273,7 +273,7 @@ quit_close_all_dialog_new (Gimp *gimp, | ||
|
||
closure = g_cclosure_new (G_CALLBACK (quit_close_all_dialog_container_changed), | ||
private, NULL); | ||
- g_object_watch_closure (G_OBJECT (private->dialog), closure); | ||
+ g_signal_connect_swapped (private->dialog, "destroy", G_CALLBACK (g_closure_invalidate), closure); | ||
g_signal_connect_closure (private->images, "add", closure, FALSE); | ||
g_signal_connect_closure (private->images, "remove", closure, FALSE); | ||
|
||
-- | ||
GitLab | ||
|
9949eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit is still in "Some checks haven’t completed yet ... 1 pending check" state.
9949eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Perkolator You mean it hasn't been published to Flathub? One more of these cases where a publication doesn't go to the end and we aren't warned (which is this report: flathub/flathub#2399).
And indeed, I verified the builds with our in-repo tool:
The last patch was never published.
I've triggered a manual build: https://buildbot.flathub.org/#/builders/6/builds/114726
9949eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P.S.: thanks @Perkolator for the notification!
9949eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's apparently published, according to my
flatpak-releases
tool. :-)