bgo#658600 - Don't try to focus the location entry in Recent-files mode

We don't ever start up in Search mode, so we don't need an extra check for that mode, yet.
Signed-off-by: Federico Mena Quintero's avatarFederico Mena Quintero <federico@gnome.org>
parent fbe5f617
...@@ -8861,7 +8861,8 @@ gtk_file_chooser_default_initial_focus (GtkFileChooserEmbed *chooser_embed) ...@@ -8861,7 +8861,8 @@ gtk_file_chooser_default_initial_focus (GtkFileChooserEmbed *chooser_embed)
if (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN || if (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN ||
impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER) impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
{ {
if (impl->location_mode == LOCATION_MODE_PATH_BAR) if (impl->location_mode == LOCATION_MODE_PATH_BAR
|| impl->operation_mode == OPERATION_MODE_RECENT)
widget = impl->browse_files_tree_view; widget = impl->browse_files_tree_view;
else else
widget = impl->location_entry; widget = impl->location_entry;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment