363 if reply in self.__replies: |
363 if reply in self.__replies: |
364 self.__replies.remove(reply) |
364 self.__replies.remove(reply) |
365 if reply.error() != QNetworkReply.NoError: |
365 if reply.error() != QNetworkReply.NoError: |
366 ok = False |
366 ok = False |
367 if not self.__downloadCancelled: |
367 if not self.__downloadCancelled: |
368 QMessageBox.warning(None, |
368 E5MessageBox.warning(self, |
369 self.trUtf8("Error downloading file"), |
369 self.trUtf8("Error downloading file"), |
370 self.trUtf8( |
370 self.trUtf8( |
371 """<p>Could not download the requested file from {0}.</p>""" |
371 """<p>Could not download the requested file from {0}.</p>""" |
372 """<p>Error: {1}</p>""" |
372 """<p>Error: {1}</p>""" |
373 ).format(self.__downloadURL, reply.errorString()) |
373 ).format(self.__downloadURL, reply.errorString()) |
497 """ |
497 """ |
498 errorStrings = [] |
498 errorStrings = [] |
499 for err in errors: |
499 for err in errors: |
500 errorStrings.append(err.errorString()) |
500 errorStrings.append(err.errorString()) |
501 errorString = '.<br />'.join(errorStrings) |
501 errorString = '.<br />'.join(errorStrings) |
502 ret = QMessageBox.warning(self, |
502 ret = E5MessageBox.warning(self, |
503 self.trUtf8("SSL Errors"), |
503 self.trUtf8("SSL Errors"), |
504 self.trUtf8("""<p>SSL Errors:</p>""" |
504 self.trUtf8("""<p>SSL Errors:</p>""" |
505 """<p>{0}</p>""" |
505 """<p>{0}</p>""" |
506 """<p>Do you want to ignore these errors?</p>""")\ |
506 """<p>Do you want to ignore these errors?</p>""")\ |
507 .format(errorString), |
507 .format(errorString), |