From 4a18317e7c35fea0aafdd99fec93adfea694743d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 26 Feb 2012 02:16:09 -0600 Subject: Added --auto-match option, for use with 'convert' --- src/convert.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/convert.cc') diff --git a/src/convert.cc b/src/convert.cc index 493fbb7a..1ef3a413 100644 --- a/src/convert.cc +++ b/src/convert.cc @@ -123,8 +123,10 @@ value_t convert_command(call_scope_t& args) if (xact->posts.front()->account == NULL) { // jww (2010-03-07): Bind this logic to an option: --auto-match if (account_t * acct = - lookup_probable_account(xact->payee, current_xacts.rbegin(), - current_xacts.rend(), bucket).second) + (report.HANDLED(auto_match) ? + lookup_probable_account(xact->payee, current_xacts.rbegin(), + current_xacts.rend(), bucket).second : + NULL)) xact->posts.front()->account = acct; else xact->posts.front()->account = unknown; -- cgit v1.2.3