Removed unused line in GUI Backup

File selection dialog in GUI backup was using an obsolete
(and possibly never working as intented) setReadOnly method.
Removed it, because it neither works nor is needed.

fixes QubesOS/qubes-issues#5348
This commit is contained in:
Marta Marczykowska-Górecka 2019-09-26 21:37:32 +02:00
parent b51cd03481
commit 8a3653723d
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -76,7 +76,6 @@ def select_path_button_clicked(dialog, select_file=False, read_only=False):
try: try:
if vm.name == socket.gethostname(): if vm.name == socket.gethostname():
file_dialog = QtWidgets.QFileDialog() file_dialog = QtWidgets.QFileDialog()
file_dialog.setReadOnly(True)
if select_file: if select_file:
file_dialog_function = file_dialog.getOpenFileName file_dialog_function = file_dialog.getOpenFileName