~strugee/homebank/improve-appstream

« back to all changes in this revision

Viewing changes to src/rep-stats.c

  • Committer: Maxime Doyen
  • Date: 2021-08-11 19:28:39 UTC
  • Revision ID: homebank@free.fr-20210811192839-j45fly2q2td54wd8
5.5.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1018
1018
 
1019
1019
                if(result == GTK_RESPONSE_ACCEPT)
1020
1020
                {
 
1021
                GtkTreeSelection *treeselection;
 
1022
                GtkTreeModel *model;
 
1023
                GtkTreeIter iter;
 
1024
                GtkTreePath *path = NULL;
 
1025
 
 
1026
                        //1936806 keep the selection
 
1027
                        gint tmpmode  = hbtk_radio_button_get_active(GTK_CONTAINER(data->RA_mode));
 
1028
                        
 
1029
                        treeselection = gtk_tree_view_get_selection (GTK_TREE_VIEW(tmpmode == 0 ? data->LV_report : data->LV_report2));
 
1030
                        if (gtk_tree_selection_get_selected(treeselection, &model, &iter))
 
1031
                        {
 
1032
                                path = gtk_tree_model_get_path(model, &iter);
 
1033
                        }
 
1034
 
1021
1035
                        //#1640885
1022
1036
                        GLOBALS->changes_count++;
1023
1037
                        repstats_compute(data->window, NULL);
 
1038
 
 
1039
                        if( path != NULL )
 
1040
                        {
 
1041
                                gtk_tree_selection_select_path(treeselection, path);
 
1042
                                gtk_tree_path_free(path);
 
1043
                        }
1024
1044
                }
1025
1045
 
1026
1046
                da_transaction_free (old_txn);