diff options
author | Jan-Michael Brummer <jan.brummer@tabos.org> | 2020-06-06 12:33:23 +0200 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2020-06-06 14:04:51 +0000 |
commit | a358649a824befa071f30608ffde1d2c7f3e4188 (patch) | |
tree | 4e462a02635ab3438a7ffebc26da1edbd2117729 /embed/ephy-embed-shell.c | |
parent | c2cc3466add17e5cc724393f81e37eff2cf95e0d (diff) | |
download | epiphany-a358649a824befa071f30608ffde1d2c7f3e4188.tar.gz |
Use EphyWebViewDocumentType to keep track of PDF
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r-- | embed/ephy-embed-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index c7444639d..b7ec98e00 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -803,7 +803,7 @@ download_started_cb (WebKitWebContext *web_context, embed = EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW (web_view); ephy_embed_download_started (embed, ephy_download); - if (!ephy_web_view_in_pdf_viewer (EPHY_WEB_VIEW (web_view))) + if (ephy_web_view_get_document_type (EPHY_WEB_VIEW (web_view)) != EPHY_WEB_VIEW_DOCUMENT_PDF) ephy_downloads_manager_add_download (priv->downloads_manager, ephy_download); } else { ephy_downloads_manager_add_download (priv->downloads_manager, ephy_download); |