Commit 1d2eaf4b authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Move it to the right place

parent 097e3b0b
......@@ -3700,14 +3700,14 @@ gtk_combo_box_list_key_press (GtkWidget *widget,
GtkTreeIter iter;
GtkTreeModel *model = NULL;
gtk_combo_box_popdown (combo_box);
if (combo_box->priv->model)
{
GtkTreeSelection *sel;
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (combo_box->priv->tree_view));
gtk_combo_box_popdown (combo_box);
if (gtk_tree_selection_get_selected (sel, &model, &iter))
gtk_combo_box_set_active_iter (combo_box, &iter);
}
......
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