Helpviewer/HelpBrowserWV.py

changeset 312
3008d1045657
parent 278
c93823b96faa
child 313
4872737993ab
equal deleted inserted replaced
311:df292f01b392 312:3008d1045657
922 return 922 return
923 923
924 if reply.error() == QNetworkReply.NoError: 924 if reply.error() == QNetworkReply.NoError:
925 if reply.url().isEmpty(): 925 if reply.url().isEmpty():
926 return 926 return
927 parent = QUrl(reply.url().toString().rsplit("/", 1)[0] + "/")
928 size = reply.header(QNetworkRequest.ContentLengthHeader) 927 size = reply.header(QNetworkRequest.ContentLengthHeader)
929 if size == 0: 928 if size == 0:
930 return 929 return
931 930
932 if requestFilename is None: 931 if requestFilename is None:
934 dlg = DownloadDialog(reply, requestFilename, self.page(), download) 933 dlg = DownloadDialog(reply, requestFilename, self.page(), download)
935 if dlg.initialize(): 934 if dlg.initialize():
936 self.connect(dlg, SIGNAL("done()"), self.__downloadDone) 935 self.connect(dlg, SIGNAL("done()"), self.__downloadDone)
937 self.__downloadWindows.append(dlg) 936 self.__downloadWindows.append(dlg)
938 dlg.show() 937 dlg.show()
939 self.setUrl(parent) 938 self.setUrl(self.url())
940 else: 939 else:
941 replyUrl = reply.url() 940 replyUrl = reply.url()
942 if replyUrl.isEmpty(): 941 if replyUrl.isEmpty():
943 return 942 return
944 943

eric ide

mercurial