From: Christian Dywan Date: Sat, 24 Apr 2010 22:57:21 +0000 (+0200) Subject: Unset save file dialog when it is destroyed X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2d5086e3b2f96215640b4bdf8aed04ffea43f4a;p=midori 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. --- 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); }