mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
parent
2a28f52f84
commit
f8f1a31b9b
@ -782,25 +782,19 @@ startRecnWindow(GtkWidget *parent, Account *account,
|
|||||||
gnc_reconcile_interest_xfer_run( &data );
|
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 */
|
if (gnc_reverse_balance(account))
|
||||||
{
|
*new_ending = gnc_numeric_neg (*new_ending);
|
||||||
*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))
|
xaccAccountSetReconcileChildrenStatus(account, data.include_children);
|
||||||
*new_ending = gnc_numeric_neg (*new_ending);
|
|
||||||
|
|
||||||
xaccAccountSetReconcileChildrenStatus(account, data.include_children);
|
gnc_save_reconcile_interval(account, *statement_date);
|
||||||
|
|
||||||
gnc_save_reconcile_interval(account, *statement_date);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* cancel or delete */
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_destroy (dialog);
|
gtk_widget_destroy (dialog);
|
||||||
|
Loading…
Reference in New Issue
Block a user