From cc5e1e1ecc9343ee67921da45eaed84db7528914 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 9 Jan 2016 11:40:45 +0100 Subject: [PATCH] QueryEditor: immediatly selected last inserted field (closes #983). --- src/queryeditor.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.49.0