file chooser: Ensure a folder is loaded when browsing

Just showing an empty list when the user hits Ctrl-l in
recent files is not very useful. Load the home directory
instead.
This commit is contained in:
Matthias Clasen 2015-04-05 22:27:23 -04:00
parent e6c1cbc88e
commit e6061caa7b

View 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 ||