From fad672c7e2b4f38d8db88b36ba43dcdf6884e83b Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Wed, 10 Apr 2013 13:09:44 +0000 Subject: 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 --- diff --git a/pdfviewer.py b/pdfviewer.py index f30dbc0..ce0244c 100644 --- a/pdfviewer.py +++ b/pdfviewer.py @@ -431,10 +431,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 -- cgit v0.9.1