From: Andrea Zagli Date: Sat, 9 Jan 2016 10:40:45 +0000 (+0100) Subject: QueryEditor: immediatly selected last inserted field (closes #983). X-Git-Tag: v0.6.0~1^2~16 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=cc5e1e1ecc9343ee67921da45eaed84db7528914;p=libgdaex QueryEditor: immediatly selected last inserted field (closes #983). --- diff --git a/src/queryeditor.c b/src/queryeditor.c index 8ed7459..b5c825c 100644 --- a/src/queryeditor.c +++ b/src/queryeditor.c @@ -3647,6 +3647,8 @@ gdaex_query_editor_show_add_iter (GdaExQueryEditor *qe, GtkTreeIter *iter) COL_SHOW_VISIBLE_NAME, g_strconcat (table->name_visible, " - ", field->name_visible, NULL), -1); + gtk_tree_selection_select_iter (priv->sel_show, iter); + g_free (table_name); g_free (field_name); } @@ -3878,6 +3880,8 @@ gdaex_query_editor_on_btn_where_add_clicked (GtkButton *button, gtk_tree_model_get_path (GTK_TREE_MODEL (priv->tstore_where), &iter_parent)); } + gtk_tree_selection_select_iter (priv->sel_where, &iter); + g_free (table_name); g_free (field_name); } @@ -4446,6 +4450,8 @@ gdaex_query_editor_on_btn_order_add_clicked (GtkButton *button, COL_ORDER_ORDER, "ASC", -1); + gtk_tree_selection_select_iter (priv->sel_order, &iter); + gdaex_query_editor_on_sel_fields_changed (NULL, user_data); g_free (table_name);