forked from AuroraMiddleware/gtk
combobox: Don't allow an individual cell to cheat
Make sure we only set sensitive when the cell is sensitive and visible. Also avoid invalid memory accesses if no cells existed.
This commit is contained in:
parent
8a83f0c2d1
commit
9707d964f7
@ -3885,13 +3885,15 @@ gtk_combo_box_list_select_func (GtkTreeSelection *selection,
|
||||
NULL);
|
||||
|
||||
if (cell_visible && cell_sensitive)
|
||||
break;
|
||||
{
|
||||
sensitive = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
cell = cell->next;
|
||||
}
|
||||
g_list_free (cells);
|
||||
|
||||
sensitive = cell_sensitive;
|
||||
g_list_free (cells);
|
||||
}
|
||||
|
||||
g_list_free (columns);
|
||||
|
Loading…
Reference in New Issue
Block a user