]> spindle.queued.net Git - midori/commitdiff
Check for the correct dialogue response for Save As
authorDaniel Michalik <dev@blackamp.de>
Wed, 9 Dec 2009 19:56:47 +0000 (20:56 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 9 Dec 2009 19:58:15 +0000 (20:58 +0100)
This fixes choosing Save As in file download fialogues.

midori/midori-browser.c

index e8e654a559f454acf7878c9fdeaa603d07370db8..d04c92cadcd0c4fe6612510e0b4541daaeb4b1ca 100644 (file)
@@ -1447,7 +1447,7 @@ midori_view_download_save_as_response_cb (GtkWidget*      dialog,
                                           MidoriBrowser*  browser)
 {
     WebKitDownload* download = g_object_get_data (G_OBJECT (dialog), "download");
-    if (response == GTK_RESPONSE_ACCEPT)
+    if (response == GTK_RESPONSE_OK)
     {
         gchar* uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog));
         webkit_download_set_destination_uri (download, uri);