From b8ef264bca268f874a4bdd3d49423da72c4d334d Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sat, 6 Sep 2003 13:15:24 +0000 Subject: [PATCH] bug fix the scrub account button git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9244 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/lot-viewer.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gnome/lot-viewer.c b/src/gnome/lot-viewer.c index 1b5f25d0c5..b52ad05080 100644 --- a/src/gnome/lot-viewer.c +++ b/src/gnome/lot-viewer.c @@ -31,6 +31,8 @@ * XXX todo: The button "view lot in register" is not implemented. * it needs to open register window showing only the splits in the * given lot ... + * + * XXX clist should be probably be removed and replaced by the gnc_query_list */ #define _GNU_SOURCE @@ -325,6 +327,7 @@ lv_scrub_lot_cb (GtkButton *but, gpointer user_data) if (NULL == lv->selected_lot) return; xaccLotScrubDoubleBalance (lv->selected_lot); gnc_lot_viewer_fill (lv); + lv_show_splits (lv); } /* ======================================================================== */ @@ -334,10 +337,9 @@ static void lv_scrub_acc_cb (GtkButton *but, gpointer user_data) { GNCLotViewer *lv = user_data; - if (NULL == lv->selected_lot) return; - xaccAccountScrubLotsBalance (gnc_lot_get_account(lv->selected_lot)); - lv_unset_lot (lv); + xaccAccountScrubLotsBalance (lv->account); gnc_lot_viewer_fill (lv); + lv_show_splits (lv); } /* ======================================================================== */ @@ -489,7 +491,6 @@ static void lv_refresh_handler (GHashTable *changes, gpointer user_data) { GNCLotViewer *lv = user_data; -printf ("duuude refresh !!\n"); gnc_lot_viewer_fill (lv); lv_show_splits (lv); }