Issue #11828: Lock Path stroke not working as expected.

The "selected-layers-changed" signal was emitted while there were still
selected channels (which is an inconsistent state). And since
gimp_image_get_selected_drawables() returns selected channels first when
the image has any, vectors_actions_update() was using the previously
selected channel's lock information for deciding which actions to set
sensitive.
This commit is contained in:
Jehan 2024-08-03 13:29:02 +02:00
parent 4bef89d0e5
commit be0a4ab12a
1 changed files with 2 additions and 2 deletions

View File

@ -1846,10 +1846,10 @@ gimp_image_selected_layers_notify (GimpItemTree *tree,
private->layer_stack = g_slist_prepend (private->layer_stack, g_list_copy (layers));
}
g_signal_emit (image, gimp_image_signals[SELECTED_LAYERS_CHANGED], 0);
if (layers && gimp_image_get_selected_channels (image))
gimp_image_set_selected_channels (image, NULL);
g_signal_emit (image, gimp_image_signals[SELECTED_LAYERS_CHANGED], 0);
}
static void