From be7835304b2dbc04774ff4fc994910f501a744be Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Thu, 21 Nov 2002 22:18:06 +0000 Subject: [PATCH] Set split to 'cleared' only if it was in 'not reconciled' beforehand. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7518 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/import-export/Transaction-matcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/import-export/Transaction-matcher.c b/src/import-export/Transaction-matcher.c index 08947652dd..7611bb9c22 100644 --- a/src/import-export/Transaction-matcher.c +++ b/src/import-export/Transaction-matcher.c @@ -606,7 +606,8 @@ on_matcher_apply_clicked (GtkButton *button, { /* Reconcile the matching transaction */ xaccTransBeginEdit(transaction_info->selected_match_info->trans); - xaccSplitSetReconcile(transaction_info->selected_match_info->split,CREC); + if (xaccSplitGetReconcile (transaction_info->selected_match_info->split) == NREC) + xaccSplitSetReconcile(transaction_info->selected_match_info->split,CREC); /*Set reconcile date to today*/ xaccSplitSetDateReconciledSecs(transaction_info->selected_match_info->split,time(NULL)); /* Copy the online id to the reconciled transaction, so the match will be remembered */