Check for the correct dialogue response for Save As
This fixes choosing Save As in file download fialogues.
This commit is contained in:
parent
8d3b12629c
commit
d6457fd085
1 changed files with 1 additions and 1 deletions
|
@ -1447,7 +1447,7 @@ midori_view_download_save_as_response_cb (GtkWidget* dialog,
|
||||||
MidoriBrowser* browser)
|
MidoriBrowser* browser)
|
||||||
{
|
{
|
||||||
WebKitDownload* download = g_object_get_data (G_OBJECT (dialog), "download");
|
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));
|
gchar* uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog));
|
||||||
webkit_download_set_destination_uri (download, uri);
|
webkit_download_set_destination_uri (download, uri);
|
||||||
|
|
Loading…
Reference in a new issue