summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-06 02:52:14 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-06 02:52:14 -0400
commit4a0f5f9034dc24c7ae5f0464d407f4cf2279558b (patch)
treeb7a4fa4659d366b34e8ecb25267ec2ea9c11f93c /src/session.cc
parent80c51bf0a524ed80c0c248374a75e7fc392e1a3d (diff)
parentaff490534a8e7826d89bbc75c6885b4a6bff4d17 (diff)
downloadfork-ledger-4a0f5f9034dc24c7ae5f0464d407f4cf2279558b.tar.gz
fork-ledger-4a0f5f9034dc24c7ae5f0464d407f4cf2279558b.tar.bz2
fork-ledger-4a0f5f9034dc24c7ae5f0464d407f4cf2279558b.zip
Merge branch 'next'
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/session.cc b/src/session.cc
index ff23719b..e171ff4d 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -87,9 +87,14 @@ std::size_t session_t::read_journal(std::istream& in,
{
if (! master)
master = journal->master;
+
std::size_t count = journal->parse(in, *this, master, &pathname,
HANDLED(strict));
- clean_accounts(); // remove calculated totals
+
+ // remove calculated totals and flags
+ clean_posts();
+ clean_accounts();
+
return count;
}