Fixed a few issues in the web browser.

Sun, 30 May 2010 17:45:42 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 May 2010 17:45:42 +0200
changeset 312
3008d1045657
parent 311
df292f01b392
child 313
4872737993ab

Fixed a few issues in the web browser.

Helpviewer/DownloadDialog.py file | annotate | diff | comparison | revisions
Helpviewer/HelpBrowserWV.py file | annotate | diff | comparison | revisions
diff -r df292f01b392 -r 3008d1045657 Helpviewer/DownloadDialog.py
--- a/Helpviewer/DownloadDialog.py	Sun May 30 17:45:20 2010 +0200
+++ b/Helpviewer/DownloadDialog.py	Sun May 30 17:45:42 2010 +0200
@@ -301,7 +301,7 @@
         Private slot to handle a change of the meta data.
         """
         locationHeader = self.__reply.header(QNetworkRequest.LocationHeader)
-        if locationHeader.isValid():
+        if locationHeader:
             self.__url = locationHeader
             self.__reply = Helpviewer.HelpWindow.HelpWindow.networkAccessManager().get(
                            QNetworkRequest(self.__url))
diff -r df292f01b392 -r 3008d1045657 Helpviewer/HelpBrowserWV.py
--- a/Helpviewer/HelpBrowserWV.py	Sun May 30 17:45:20 2010 +0200
+++ b/Helpviewer/HelpBrowserWV.py	Sun May 30 17:45:42 2010 +0200
@@ -924,7 +924,6 @@
         if reply.error() == QNetworkReply.NoError:
             if reply.url().isEmpty():
                 return
-            parent = QUrl(reply.url().toString().rsplit("/", 1)[0] + "/")
             size = reply.header(QNetworkRequest.ContentLengthHeader)
             if size == 0:
                 return
@@ -936,7 +935,7 @@
                 self.connect(dlg, SIGNAL("done()"), self.__downloadDone)
                 self.__downloadWindows.append(dlg)
                 dlg.show()
-            self.setUrl(parent)
+            self.setUrl(self.url())
         else:
             replyUrl = reply.url()
             if replyUrl.isEmpty():

eric ide

mercurial