mirror of https://github.com/GNOME/gimp.git
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:
parent
4bef89d0e5
commit
be0a4ab12a
|
@ -1846,10 +1846,10 @@ gimp_image_selected_layers_notify (GimpItemTree *tree,
|
||||||
private->layer_stack = g_slist_prepend (private->layer_stack, g_list_copy (layers));
|
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))
|
if (layers && gimp_image_get_selected_channels (image))
|
||||||
gimp_image_set_selected_channels (image, NULL);
|
gimp_image_set_selected_channels (image, NULL);
|
||||||
|
|
||||||
|
g_signal_emit (image, gimp_image_signals[SELECTED_LAYERS_CHANGED], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue