[Pkg-sugar-commit] [sugar-browse-activity] 12/16: PDF tabs: set status FINISHED if the URL is local - SL #4471

Jonas Smedegaard dr at jones.dk
Mon Apr 20 09:47:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v149.2
in repository sugar-browse-activity.

commit 5c407b65a83cfb3134a67e5e2ef81d9cdf6c5cba
Author: Manuel Quiñones <manuq at laptop.org>
Date:   Wed Apr 10 10:09:44 2013 -0300

    PDF tabs: set status FINISHED if the URL is local - SL #4471
    
    For the remote tabs, FINISHED is set when the download finishes, but
    for remote we were leaving the tabs in PROVISIONAL state.  This caused
    an error when the user tried to close the tab with the local PDF.
    
    Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 pdfviewer.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pdfviewer.py b/pdfviewer.py
index 25188b1..1502780 100644
--- a/pdfviewer.py
+++ b/pdfviewer.py
@@ -319,10 +319,12 @@ class PDFTabPage(Gtk.HBox):
 
         if requested_uri.startswith('file://'):
             self._pdf_uri = requested_uri
+            self._browser.props.load_status = WebKit.LoadStatus.FINISHED
             self._show_pdf()
 
         elif requested_uri.startswith('journal://'):
             self._pdf_uri = self._get_path_from_journal(requested_uri)
+            self._browser.props.load_status = WebKit.LoadStatus.FINISHED
             self._show_pdf(from_journal=True)
 
         # download first if file is remote

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-browse-activity.git



More information about the pkg-sugar-commit mailing list