From c0fa144ca586bfc3d48d7f2512bb90ebdde148df Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 May 2012 01:53:53 -0500 Subject: Added "last_checkout_cleared" valexpr variable --- src/timelog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timelog.cc') diff --git a/src/timelog.cc b/src/timelog.cc index e84e4188..9516ba17 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -62,7 +62,7 @@ namespace { VERIFY(amt.valid()); post_t * post = new post_t(in_event.account, amt, POST_VIRTUAL); - post->set_state(item_t::CLEARED); + post->set_state(out_event.completed ? item_t::CLEARED : item_t::UNCLEARED); post->pos = in_event.position; post->checkin = in_event.checkin; post->checkout = out_event.checkin; -- cgit v1.2.3