[Gnucash-changes] remove wacky loop that can be executed only once

Linas Vepstas linas at cvs.gnucash.org
Fri Aug 27 18:28:35 EDT 2004


Log Message:
-----------
remove wacky loop that can be executed only once

Modified Files:
--------------
    gnucash/src/gnome:
        window-reconcile.c

Revision Data
-------------
Index: window-reconcile.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/window-reconcile.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -Lsrc/gnome/window-reconcile.c -Lsrc/gnome/window-reconcile.c -u -r1.110 -r1.111
--- src/gnome/window-reconcile.c
+++ src/gnome/window-reconcile.c
@@ -782,25 +782,19 @@
     gnc_reconcile_interest_xfer_run( &data );
   }
 
-  while (TRUE)
-  {
-    result = gnome_dialog_run(GNOME_DIALOG(dialog));
-
-    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));
+  result = gnome_dialog_run(GNOME_DIALOG(dialog));
 
-      if (gnc_reverse_balance(account))
-        *new_ending = gnc_numeric_neg (*new_ending);
+  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));
 
-      xaccAccountSetReconcileChildrenStatus(account, data.include_children);
+    if (gnc_reverse_balance(account))
+      *new_ending = gnc_numeric_neg (*new_ending);
 
-      gnc_save_reconcile_interval(account, *statement_date);
-    }
+    xaccAccountSetReconcileChildrenStatus(account, data.include_children);
 
-    /* cancel or delete */
-    break;
+    gnc_save_reconcile_interval(account, *statement_date);
   }
 
   gtk_widget_destroy (dialog);


More information about the gnucash-changes mailing list