From f7db4725a28f35acf9433e600043189f5ca2dbad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 15 Jan 2014 05:59:45 +0100 Subject: [PATCH] backups: minor fixes --- qubesmanager/backup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qubesmanager/backup.py b/qubesmanager/backup.py index 573fcd5..44ec690 100644 --- a/qubesmanager/backup.py +++ b/qubesmanager/backup.py @@ -70,6 +70,7 @@ class BackupVMsWindow(Ui_Backup, QWizard): self.selected_vms = [] self.vm = self.qvm_collection[0] + self.files_to_backup = None assert self.vm != None @@ -339,11 +340,12 @@ class BackupVMsWindow(Ui_Backup, QWizard): time.sleep (0.1) if not self.thread_monitor.success: - self.progress_status.setText = "Backup error." - QMessageBox.warning (None, "Backup error!", "ERROR: {}".format(self.thread_monitor.error_msg)) + self.progress_status.setText("Backup error.") + QMessageBox.warning (self, "Backup error!", "ERROR: {}".format( + self.thread_monitor.error_msg)) else: self.progress_bar.setValue(100) - self.progress_status.setText = "Backup finished." + self.progress_status.setText("Backup finished.") if self.dev_mount_path != None: umount_device(self.dev_mount_path) detach_device(self, str(self.dev_combobox.itemData(