handle tuple returns from file dialog properly

This commit is contained in:
Veronica K. B. Olsen
2020-10-07 19:19:36 +02:00
parent 48742ceb0e
commit e22f99cffb
5 changed files with 12 additions and 17 deletions
+2 -4
View File
@@ -562,12 +562,10 @@ class GuiMain(QMainWindow):
]
dlgOpt = QFileDialog.Options()
dlgOpt |= QFileDialog.DontUseNativeDialog
inPath = QFileDialog.getOpenFileName(
loadFile, _ = QFileDialog.getOpenFileName(
self, "Import File", lastPath, options=dlgOpt, filter=";;".join(extFilter)
)
if inPath:
loadFile = inPath[0]
else:
if not loadFile:
return False
if loadFile.strip() == "":