file chooser: Make keynav in save mode smoother

When using the location popup to complete to a directory name
(with a trailing /), we should not punish the user by making the
Open button insensitive and preventing the Enter key from doing
the expected thing (switching to that directory).

https://bugzilla.gnome.org/show_bug.cgi?id=752708
This commit is contained in:
Matthias Clasen 2015-07-23 01:04:15 -04:00
parent 3f18e76a34
commit 707459fe4e

View File

@ -5853,12 +5853,6 @@ gtk_file_chooser_widget_get_files (GtkFileChooser *chooser)
if (!is_well_formed)
return NULL;
if (is_file_part_empty && priv->action == GTK_FILE_CHOOSER_ACTION_SAVE)
{
g_object_unref (info.file_from_entry);
return NULL;
}
if (info.file_from_entry)
info.result = g_slist_prepend (info.result, info.file_from_entry);
else if (!file_list_seen)