file chooser: Ensure a folder is loaded when browsing
authorMatthias Clasen <mclasen@redhat.com>
Mon, 6 Apr 2015 02:27:23 +0000 (22:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 6 Apr 2015 02:27:23 +0000 (22:27 -0400)
Just showing an empty list when the user hits Ctrl-l in
recent files is not very useful. Load the home directory
instead.

gtk/gtkfilechooserwidget.c

index 836cbb9e6e4e89cd9a22efc689e6a0e16761d8f9..8fada3b68342224a033fe3907616573012d5c9d9 100644 (file)
@@ -6965,6 +6965,8 @@ location_popup_handler (GtkFileChooserWidget *impl,
       operation_mode_set (impl, OPERATION_MODE_BROWSE);
       if (priv->current_folder)
         change_folder_and_display_error (impl, priv->current_folder, FALSE);
+      else
+        switch_to_home_dir (impl);
     }
 
   if (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN ||