Commit 9707d964 authored by Benjamin Otte's avatar Benjamin Otte

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.
parent 8a83f0c2
......@@ -3885,13 +3885,15 @@ gtk_combo_box_list_select_func (GtkTreeSelection *selection,
if (cell_visible && cell_sensitive)
sensitive = TRUE;
cell = cell->next;
g_list_free (cells);
sensitive = cell_sensitive;
g_list_free (cells);
g_list_free (columns);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment