]> saetta.ns0.it Git - libgdaex/commitdiff
QueryEditor: immediatly selected last inserted field (closes #983).
authorAndrea Zagli <andrea.zagli@email.it>
Sat, 9 Jan 2016 10:40:45 +0000 (11:40 +0100)
committerAndrea Zagli <andrea.zagli@email.it>
Sat, 9 Jan 2016 10:40:45 +0000 (11:40 +0100)
src/queryeditor.c

index 8ed7459b0747be182b4ab70722ea5e4e91c836e9..b5c825c1012e24a7c901e1e4c79e009545fdae6b 100644 (file)
@@ -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);