479 |
479 |
480 if not QFileInfo(name.toLocalFile()).exists(): |
480 if not QFileInfo(name.toLocalFile()).exists(): |
481 QMessageBox.critical(None, |
481 QMessageBox.critical(None, |
482 self.trUtf8("Web Browser"), |
482 self.trUtf8("Web Browser"), |
483 self.trUtf8("""<p>The file <b>{0}</b> does not exist.</p>""")\ |
483 self.trUtf8("""<p>The file <b>{0}</b> does not exist.</p>""")\ |
484 .format(name.toLocalFile()), |
484 .format(name.toLocalFile())) |
485 QMessageBox.StandardButtons(\ |
|
486 QMessageBox.Ok)) |
|
487 return |
485 return |
488 |
486 |
489 if name.toLocalFile().endswith(".pdf") or \ |
487 if name.toLocalFile().endswith(".pdf") or \ |
490 name.toLocalFile().endswith(".PDF") or \ |
488 name.toLocalFile().endswith(".PDF") or \ |
491 name.toLocalFile().endswith(".chm") or \ |
489 name.toLocalFile().endswith(".chm") or \ |