forked from AuroraMiddleware/gtk
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:
parent
3f18e76a34
commit
707459fe4e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user