app: gimp_container_icon_view_select_item() must only select one item

Call gtk_icon_view_unselect_all() before gtk_icon_view_select_path()
or we end up with an unintended multi-selection.
This commit is contained in:
Michael Natterer 2018-06-28 23:32:20 +02:00
parent 164de32998
commit f294d5e1af

View file

@ -543,6 +543,7 @@ gimp_container_icon_view_select_item (GimpContainerView *view,
gimp_container_icon_view_selection_changed,
icon_view);
gtk_icon_view_unselect_all (icon_view->view);
gtk_icon_view_select_path (icon_view->view, path);
gtk_icon_view_set_cursor (icon_view->view, path, NULL, FALSE);