Helpviewer/History/HistoryManager.py

changeset 257
e03694226603
parent 168
3383117f894b
child 323
75182cd9b2c5
child 645
3750d548b351
equal deleted inserted replaced
256:04083f42042d 257:e03694226603
438 if not f.copy(historyFile.fileName()): 438 if not f.copy(historyFile.fileName()):
439 QMessageBox.warning(None, 439 QMessageBox.warning(None,
440 self.trUtf8("Saving History"), 440 self.trUtf8("Saving History"),
441 self.trUtf8("""<p>Error moving new history file over old one """ 441 self.trUtf8("""<p>Error moving new history file over old one """
442 """(<b>{0}</b>).<br/>Reason: {1}</p>""")\ 442 """(<b>{0}</b>).<br/>Reason: {1}</p>""")\
443 .format(historyFile.fileName(), tempFile.errorString())) 443 .format(historyFile.fileName(), f.errorString()))
444 444
445 try: 445 try:
446 self.__lastSavedUrl = self.__history[0].url 446 self.__lastSavedUrl = self.__history[0].url
447 except IndexError: 447 except IndexError:
448 self.__lastSavedUrl = "" 448 self.__lastSavedUrl = ""

eric ide

mercurial