Browse Source

backups: start dom0 file browser with '/' as default

Do not suggest home directory as right place for backups. If the user
chosen some block device, it will be used as default.
Marek Marczykowski-Górecki 10 years ago
parent
commit
89280d0283
1 changed files with 3 additions and 1 deletions
  1. 3 1
      qubesmanager/backup_utils.py

+ 3 - 1
qubesmanager/backup_utils.py

@@ -235,7 +235,9 @@ def select_path_button_clicked(dialog, select_file = False):
     elif dialog.dev_mount_path != None:
         new_path = file_dialog_function(dialog, "Select backup location.", dialog.dev_mount_path)
     else:
-        new_path = file_dialog_function(dialog, "Select backup location.", backup_location)
+        new_path = file_dialog_function(dialog, "Select backup location.",
+                                        backup_location if backup_location
+                                        else '/')
 
     if new_path != None:
         new_path = str(new_path)