~mdoyen/homebank/5.5.x

« back to all changes in this revision

Viewing changes to src/rep-balance.c

  • Committer: Maxime Doyen
  • Date: 2021-08-11 19:29:01 UTC
  • Revision ID: homebank@free.fr-20210811192901-wsek29997clhsvno
5.5.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
390
390
 
391
391
                if(result == GTK_RESPONSE_ACCEPT)
392
392
                {
 
393
                GtkTreeSelection *treeselection;
 
394
                GtkTreeModel *model;
 
395
                GtkTreeIter iter;
 
396
                GtkTreePath *path = NULL;
 
397
 
 
398
                        //1936806 keep the selection
 
399
                        treeselection = gtk_tree_view_get_selection (GTK_TREE_VIEW(data->LV_report));
 
400
                        if (gtk_tree_selection_get_selected(treeselection, &model, &iter))
 
401
                        {
 
402
                                path = gtk_tree_model_get_path(model, &iter);
 
403
                        }
 
404
 
393
405
                        //#1640885
394
406
                        GLOBALS->changes_count++;
395
407
                        repbalance_compute (data->window, NULL);
 
408
 
 
409
                        if( path != NULL )
 
410
                        {
 
411
                                gtk_tree_selection_select_path(treeselection, path);
 
412
                                gtk_tree_path_free(path);
 
413
                        }
 
414
 
396
415
                }
397
416
 
398
417
                da_transaction_free (old_txn);