From 470e1c08795b6815b4693d353ddd608c71bfac8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 26 Sep 2014 15:01:37 +0200 Subject: [PATCH] backups/restore: always allow an option to manually unmount storage device --- qubesmanager/restore.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qubesmanager/restore.py b/qubesmanager/restore.py index 7152b54..0d0ba02 100644 --- a/qubesmanager/restore.py +++ b/qubesmanager/restore.py @@ -255,8 +255,7 @@ class RestoreVMsWindow(Ui_Restore, QWizard): elif self.currentPage() is self.commit_page: self.button(self.FinishButton).setDisabled(True) - self.showFileDialog.setEnabled( - self.appvm_combobox.currentIndex() != 0) + self.showFileDialog.setEnabled(True) self.showFileDialog.setChecked(self.showFileDialog.isEnabled() and str(self.dir_line_edit.text()) .count("media/") > 0) @@ -302,6 +301,12 @@ class RestoreVMsWindow(Ui_Restore, QWizard): if self.target_appvm: self.target_appvm.run("QUBESRPC %s dom0" % "qubes" ".SelectDirectory") + else: + file_dialog = QFileDialog() + file_dialog.setReadOnly(True) + file_dialog.getExistingDirectory(self, + "Detach backup device", + self.dev_mount_path) self.progress_bar.setValue(100) self.button(self.FinishButton).setEnabled(True) self.button(self.CancelButton).setEnabled(False)