From 766895bf324195b7a7bc46d65259735ffdca9868 Mon Sep 17 00:00:00 2001 From: Theo Linkspfeifer Date: Sun, 22 Mar 2020 18:24:02 +0100 Subject: [PATCH] Unregister handler when Rename dialog is closed manually --- thunar/thunar-dialogs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/thunar/thunar-dialogs.c b/thunar/thunar-dialogs.c index 94eb2814..78850ed4 100644 --- a/thunar/thunar-dialogs.c +++ b/thunar/thunar-dialogs.c @@ -197,7 +197,12 @@ thunar_dialogs_show_rename_file (gpointer parent, /* cleanup */ if (G_LIKELY (response != GTK_RESPONSE_NONE)) - gtk_widget_destroy (dialog); + { + /* unregister handler */ + g_signal_handlers_disconnect_by_func (G_OBJECT (file), gtk_widget_destroy, dialog); + + gtk_widget_destroy (dialog); + } return job; } -- 2.25.1