Issue #10143: shift selecting is failing to highlight selected layers.

This is a consequence of commit 98f0c448. Apparently setting the tree view
cursor also reset visually the selection. So I make sure I only set the cursor
on the first path in the list of selected items.
This commit is contained in:
Jehan 2023-10-09 15:59:13 +02:00
parent 8f06421781
commit 1d8782915e

View file

@ -934,7 +934,8 @@ gimp_container_tree_view_select_items (GimpContainerView *view,
/* Add to the selection. */
gtk_tree_selection_select_path (tree_view->priv->selection, path->data);
gtk_tree_view_set_cursor (tree_view->view, path->data, NULL, FALSE);
if (path == paths)
gtk_tree_view_set_cursor (tree_view->view, path->data, NULL, FALSE);
}
g_signal_handlers_unblock_by_func (tree_view->priv->selection,
gimp_container_tree_view_selection_changed,