[gnome-disk-utility] Also update disk image directory when attaching disk images



commit 0db260c2b98459538401c93a538882009164ed80
Author: David Zeuthen <zeuthen gmail com>
Date:   Sun Jul 29 10:36:02 2012 -0400

    Also update disk image directory when attaching disk images
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 src/disks/gduwindow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index aa03257..482db64 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -772,6 +772,9 @@ gdu_window_show_attach_disk_image (GduWindow *window)
       goto out;
     }
 
+  /* now that we know the user picked a folder, update file chooser settings */
+  gdu_utils_file_chooser_for_disk_images_update_settings (GTK_FILE_CHOOSER (dialog));
+
   g_variant_builder_init (&options_builder, G_VARIANT_TYPE_VARDICT);
   if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ro_checkbutton)))
     g_variant_builder_add (&options_builder, "{sv}", "read-only", g_variant_new_boolean (TRUE));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]