147 self.filePicker.setFilters(self.tr("XML Files (*.xml);;All Files (*)")) |
147 self.filePicker.setFilters(self.tr("XML Files (*.xml);;All Files (*)")) |
148 suffix = ".xml" |
148 suffix = ".xml" |
149 else: |
149 else: |
150 self.filePicker.setFilters(self.tr("All Files (*)")) |
150 self.filePicker.setFilters(self.tr("All Files (*)")) |
151 suffix = "" |
151 suffix = "" |
152 |
152 |
153 filePath = self.filePicker.path() |
153 filePath = self.filePicker.path() |
154 if bool(filePath.name): |
154 if bool(filePath.name): |
155 self.filePicker.setPath(filePath.with_suffix(suffix)) |
155 self.filePicker.setPath(filePath.with_suffix(suffix)) |
156 |
156 |
157 @pyqtSlot() |
157 @pyqtSlot() |