Merge remote-tracking branch 'origin/pr/202'

* origin/pr/202:
  Fixed change in QFileDialog behavior in PyQt5
This commit is contained in:
Marek Marczykowski-Górecki 2019-09-30 03:51:46 +02:00
commit 12481fd561
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -81,7 +81,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 '/')