Fixed change in QFileDialog behavior in PyQt5

Return type of QFileDialog changed between PyQt4 and PyQt5.

fixes QubesOS/qubes-issues#5353
This commit is contained in:
Marta Marczykowska-Górecka 2019-09-27 22:29:06 +02:00
parent b51cd03481
commit 442066d96c
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -82,7 +82,7 @@ def select_path_button_clicked(dialog, select_file=False, read_only=False):
file_dialog_function = file_dialog.getOpenFileName
else:
file_dialog_function = file_dialog.getExistingDirectory
new_path = file_dialog_function(
new_path, _ = file_dialog_function(
dialog,
dialog.tr("Select backup location."),
backup_location if backup_location else '/')