Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2013-04-10 13:09:44 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2013-04-10 13:12:56 (GMT)
commitfad672c7e2b4f38d8db88b36ba43dcdf6884e83b (patch)
treeebdeda695852c0cfcb2c9a6b19070c4684972702
parent5234aee5bae44f0ca81084f0d33a26f24d6ac63a (diff)
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@laptop.org>
-rw-r--r--pdfviewer.py2
1 files changed, 2 insertions, 0 deletions
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