[epiphany/gnome-3-18] download: Browse to file if it cannot be opened



commit 9d1adc8540af3ba8a6d70f4ab555a296b79796a3
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 b3364e9..e6cfe2b 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -586,6 +586,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, priv->start_time);
+        if (!ret)
+          ret = ephy_file_browse_to (destination, priv->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]