summaryrefslogtreecommitdiff
path: root/src/convert.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/convert.cc')
-rw-r--r--src/convert.cc6
1 files changed, 4 insertions, 2 deletions
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;