forked from AuroraMiddleware/gtk
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:
parent
e6c1cbc88e
commit
e6061caa7b
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user