From d2d5086e3b2f96215640b4bdf8aed04ffea43f4a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 25 Apr 2010 00:57:21 +0200 Subject: [PATCH] Unset save file dialog when it is destroyed If the window manager closes the dialogue rather than one of the buttons, it is destroyed implicitly. --- midori/midori-browser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index e280c263..85b7d8f8 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1538,6 +1538,8 @@ midori_view_download_requested_cb (GtkWidget* view, folder = katze_object_get_string (browser->settings, "download-folder"); gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), folder); g_free (folder); + g_signal_connect (dialog, "destroy", + G_CALLBACK (gtk_widget_destroyed), &dialog); g_signal_connect (dialog, "response", G_CALLBACK (midori_view_download_save_as_response_cb), browser); }