From 02ac37c3168705fcd0e8002513194cd289ace7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 12 Jan 2014 05:43:15 +0100 Subject: [PATCH] backups: default path on block device only on backup, not restore On restore the user must point which backup want to use. --- qubesmanager/backup_utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qubesmanager/backup_utils.py b/qubesmanager/backup_utils.py index dffa63f..49713ca 100644 --- a/qubesmanager/backup_utils.py +++ b/qubesmanager/backup_utils.py @@ -181,12 +181,12 @@ def dev_combobox_activated(dialog, idx): dialog.prev_dev_idx = idx - if dialog.dev_mount_path != None: - # Initialize path with root of mounted device - dialog.dir_line_edit.setText(dialog.dev_mount_path) - - dialog.select_dir_page.emit(SIGNAL("completeChanged()")) - + if hasattr(dialog, 'selected_vms'): + # backup window + if dialog.dev_mount_path != None: + # Initialize path with root of mounted device + dialog.dir_line_edit.setText(dialog.dev_mount_path) + dialog.select_dir_page.emit(SIGNAL("completeChanged()")) def select_path_button_clicked(dialog, select_file = False): backup_location = str(dialog.dir_line_edit.text())