backups: default path on block device only on backup, not restore

On restore the user must point which backup want to use.
This commit is contained in:
Marek Marczykowski-Górecki 2014-01-12 05:43:15 +01:00
parent 26d4f67963
commit 02ac37c316

View File

@ -181,13 +181,13 @@ def dev_combobox_activated(dialog, idx):
dialog.prev_dev_idx = idx dialog.prev_dev_idx = idx
if hasattr(dialog, 'selected_vms'):
# backup window
if dialog.dev_mount_path != None: if dialog.dev_mount_path != None:
# Initialize path with root of mounted device # Initialize path with root of mounted device
dialog.dir_line_edit.setText(dialog.dev_mount_path) dialog.dir_line_edit.setText(dialog.dev_mount_path)
dialog.select_dir_page.emit(SIGNAL("completeChanged()")) dialog.select_dir_page.emit(SIGNAL("completeChanged()"))
def select_path_button_clicked(dialog, select_file = False): def select_path_button_clicked(dialog, select_file = False):
backup_location = str(dialog.dir_line_edit.text()) backup_location = str(dialog.dir_line_edit.text())
file_dialog = QFileDialog() file_dialog = QFileDialog()