Use native look for the import FileDialog

It is the only FileDialog in the entire codebase that does not conform
to the rest of the OS like its brethren, and it stuck out like a sore
thumb because of it.
This commit is contained in:
Jan Wester 2019-08-08 03:46:35 +02:00 committed by Curtis Gedak
parent c2dce6e0c6
commit bcf749d165

View file

@ -122,9 +122,8 @@ class importerDialog(QWidget, Ui_importer):
F = self._format
options = QFileDialog.Options()
options |= QFileDialog.DontUseNativeDialog
if F.fileFormat == "<<folder>>":
options = QFileDialog.DontUseNativeDialog | QFileDialog.ShowDirsOnly
options = QFileDialog.ShowDirsOnly
fileName = QFileDialog.getExistingDirectory(self, "Select import folder",
"", options=options)
else: