Check for the correct dialogue response for Save As

This fixes choosing Save As in file download fialogues.
This commit is contained in:
Daniel Michalik 2009-12-09 20:56:47 +01:00 committed by Christian Dywan
parent 8d3b12629c
commit d6457fd085

View 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);