mirror of https://github.com/GNOME/gimp.git
app: reset the selected index when active palette changes.
This fixes some CRITICAL when switching active image while an item is selected.
This commit is contained in:
parent
2a0f3b6340
commit
c3c0a70dd5
|
@ -785,6 +785,8 @@ gimp_colormap_selection_set_palette (GimpColormapSelection *selection)
|
|||
{
|
||||
if (selection->active_palette)
|
||||
{
|
||||
gimp_colormap_selection_set_index (selection, 0, NULL);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (selection->active_palette,
|
||||
G_CALLBACK (gtk_widget_queue_draw),
|
||||
selection);
|
||||
|
|
Loading…
Reference in New Issue