Focus view when opening files from the filebrowser or documents panel

139db33451
This commit is contained in:
JosephMcc
2017-02-13 01:56:33 -08:00
parent 98c983f144
commit c253d9feaa
4 changed files with 18 additions and 3 deletions

View File

@@ -593,14 +593,15 @@ button_press_event (GtkWidget *widget,
if (event->type == GDK_2BUTTON_PRESS)
{
/* Chain up, must be before activating the selected
items because this will cause the view to grab focus */
widget_parent->button_press_event (widget, event);
if (view->priv->double_click_path[1] &&
gtk_tree_path_compare (view->priv->double_click_path[0], view->priv->double_click_path[1]) == 0)
{
activate_selected_items (view);
}
/* Chain up */
widget_parent->button_press_event (widget, event);
}
else
{