summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/session.cc b/src/session.cc
index b386607a..ec57eab3 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -106,10 +106,6 @@ std::size_t session_t::read_data(const string& master_account)
}
}
- if (HANDLED(explicit))
- journal->force_checking = true;
- if (HANDLED(check_payees))
- journal->check_payees = true;
if (HANDLED(day_break))
journal->day_break = true;
@@ -117,15 +113,21 @@ std::size_t session_t::read_data(const string& master_account)
journal->recursive_aliases = true;
if (HANDLED(no_aliases))
journal->no_aliases = true;
-
+
+ if (HANDLED(explicit))
+ journal->force_checking = true;
+ if (HANDLED(check_payees))
+ journal->check_payees = true;
+
if (HANDLED(permissive))
journal->checking_style = journal_t::CHECK_PERMISSIVE;
else if (HANDLED(pedantic))
journal->checking_style = journal_t::CHECK_ERROR;
else if (HANDLED(strict))
journal->checking_style = journal_t::CHECK_WARNING;
- else if (HANDLED(value_expr_))
- journal->value_expr = HANDLER(value_expr_).str();
+
+ if (HANDLED(value_expr_))
+ journal->value_expr = HANDLER(value_expr_).str();
#if HAVE_BOOST_SERIALIZATION
optional<archive_t> cache;