[epiphany/wip/fixes: 7/15] download: Browse to file if it cannot be opened



commit 98cfd68cbb244c7720e0637aef96fb24c3be0de2
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Feb 27 12:50:11 2016 -0600

    download: Browse to file if it cannot be opened
    
    Instead of failing silently in response to the user's attempts to open a
    download.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=610586

 embed/ephy-download.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 7c837e9..cf88bfe 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -479,6 +479,8 @@ ephy_download_do_download_action (EphyDownload *download,
         LOG ("ephy_download_do_download_action: open");
         ret = ephy_embed_shell_launch_handler (ephy_embed_shell_get_default (), 
                                                destination, NULL, download->start_time);
+        if (!ret)
+          ret = ephy_file_browse_to (destination, download->start_time);
         break;
       case EPHY_DOWNLOAD_ACTION_NONE:
         LOG ("ephy_download_do_download_action: none");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]