combobox: Don’t select active item if it’s hidden

I hope no one ever actually brings such a silly item into this world,
but this achieves symmetry with the similar checks immediately after.
This commit is contained in:
Daniel Boles 2017-01-18 22:17:37 +00:00
parent ac4e1625f5
commit dfe89a381f

View File

@ -2179,7 +2179,7 @@ gtk_combo_box_menu_popup (GtkComboBox *combo_box,
GList *i;
GtkWidget *child;
if (!active)
if (!(active && gtk_widget_get_visible (active)))
{
for (i = GTK_MENU_SHELL (priv->popup_widget)->priv->children; i && !active; i = i->next)
{