From 5c407b65a83cfb3134a67e5e2ef81d9cdf6c5cba 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 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 -- cgit v0.9.1