From f8f1a31b9bdca5f59939469b9b21f669a4f67609 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Fri, 27 Aug 2004 22:28:34 +0000 Subject: [PATCH] remove wacky loop that can be executed only once git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10247 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/window-reconcile.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/gnome/window-reconcile.c b/src/gnome/window-reconcile.c index 039a80cf8d..cc47c87c22 100644 --- a/src/gnome/window-reconcile.c +++ b/src/gnome/window-reconcile.c @@ -782,25 +782,19 @@ startRecnWindow(GtkWidget *parent, Account *account, gnc_reconcile_interest_xfer_run( &data ); } - while (TRUE) + result = gnome_dialog_run(GNOME_DIALOG(dialog)); + + if (result == 0) /* ok button */ { - result = gnome_dialog_run(GNOME_DIALOG(dialog)); + *new_ending = gnc_amount_edit_get_amount (GNC_AMOUNT_EDIT (end_value)); + *statement_date = gnc_date_edit_get_date(GNC_DATE_EDIT(date_value)); - if (result == 0) /* ok button */ - { - *new_ending = gnc_amount_edit_get_amount (GNC_AMOUNT_EDIT (end_value)); - *statement_date = gnc_date_edit_get_date(GNC_DATE_EDIT(date_value)); + if (gnc_reverse_balance(account)) + *new_ending = gnc_numeric_neg (*new_ending); - if (gnc_reverse_balance(account)) - *new_ending = gnc_numeric_neg (*new_ending); + xaccAccountSetReconcileChildrenStatus(account, data.include_children); - xaccAccountSetReconcileChildrenStatus(account, data.include_children); - - gnc_save_reconcile_interval(account, *statement_date); - } - - /* cancel or delete */ - break; + gnc_save_reconcile_interval(account, *statement_date); } gtk_widget_destroy (dialog);