diff options
Diffstat (limited to 'embed/ephy-download.c')
-rw-r--r-- | embed/ephy-download.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c index a1821f208..5d77c0e29 100644 --- a/embed/ephy-download.c +++ b/embed/ephy-download.c @@ -674,6 +674,10 @@ ephy_download_do_download_action (EphyDownload *download, LOG ("ephy_download_do_download_action: none"); ret = TRUE; break; + case EPHY_DOWNLOAD_ACTION_DO_NOTHING: + LOG ("ephy_download_do_download_action: nothing"); + ret = TRUE; + break; default: LOG ("ephy_download_do_download_action: unhandled action"); ret = FALSE; @@ -916,10 +920,11 @@ download_status_changed_cb (GObject *object, if (status == WEBKIT_DOWNLOAD_STATUS_FINISHED) { g_signal_emit_by_name (download, "completed"); - if (g_settings_get_boolean (EPHY_SETTINGS_MAIN, EPHY_PREFS_AUTO_DOWNLOADS)) { + if (g_settings_get_boolean (EPHY_SETTINGS_MAIN, EPHY_PREFS_AUTO_DOWNLOADS) && + priv->action == EPHY_DOWNLOAD_ACTION_NONE) { ephy_download_do_download_action (download, EPHY_DOWNLOAD_ACTION_AUTO); } else { - ephy_download_do_download_action (download, EPHY_DOWNLOAD_ACTION_NONE); + ephy_download_do_download_action (download, priv->action); } ephy_embed_shell_remove_download (embed_shell, download); |