1
0

fix: return type of QFileDialog.getOpenFileName() changed

This commit is contained in:
SomberNight
2017-09-24 04:16:39 +02:00
parent 3181396858
commit f1a4f998d2
6 changed files with 7 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin):
run_hook('scan_text_edit', self)
def file_input(self):
fileName = QFileDialog.getOpenFileName(self, 'select file')
fileName, _ = QFileDialog.getOpenFileName(self, 'select file')
if not fileName:
return
with open(fileName, "r") as f: