36 """ |
36 """ |
37 super().__init__(parent) |
37 super().__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
40 self.pdfFilePicker.setMode(EricPathPickerModes.SAVE_FILE_OVERWRITE_MODE) |
40 self.pdfFilePicker.setMode(EricPathPickerModes.SAVE_FILE_OVERWRITE_MODE) |
41 self.pdfFilePicker.setFilters(self.tr("PDF Files (*.pdf);;" "All Files (*)")) |
41 self.pdfFilePicker.setFilters(self.tr("PDF Files (*.pdf);;All Files (*)")) |
42 if not os.path.isabs(filePath): |
42 if not os.path.isabs(filePath): |
43 documentsPath = QStandardPaths.writableLocation( |
43 documentsPath = QStandardPaths.writableLocation( |
44 QStandardPaths.StandardLocation.DocumentsLocation |
44 QStandardPaths.StandardLocation.DocumentsLocation |
45 ) |
45 ) |
46 if documentsPath: |
46 if documentsPath: |