]> khamidou — GitHub mirrors - electron.git/commitdiff
gtk: Enable create folder in dialog.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 13 Mar 2014 05:27:01 +0000 (13:27 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 13 Mar 2014 05:27:01 +0000 (13:27 +0800)
browser/ui/file_dialog_gtk.cc

index 8effcfa3aea8d95a6e935f3fcd69af94e16e23f9..4b78c06e0bff7e2263a02b030b8e826b1f72d0cb 100644 (file)
@@ -32,6 +32,8 @@ class FileChooserDialog {
     if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
       gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog_),
                                                      TRUE);
+    if (action != GTK_FILE_CHOOSER_ACTION_OPEN)
+      gtk_file_chooser_set_create_folders(GTK_FILE_CHOOSER(dialog_), TRUE);
 
     // Set window-to-parent modality by adding the dialog to the same window
     // group as the parent.