ui: fix a regression, empty register of depth-limited account (fix #1208)

This commit is contained in:
Simon Michael 2020-03-08 12:27:05 -07:00
parent e0cbcd3e2e
commit c1488db4f1

View File

@ -69,7 +69,7 @@ rsInit d reset ui@UIState{aopts=_uopts@UIOpts{cliopts_=CliOpts{reportopts_=ropts
ropts' = ropts{
depth_=Nothing
}
q = And [queryFromOpts d ropts, excludeforecastq (forecast_ ropts)]
q = And [queryFromOpts d ropts', excludeforecastq (forecast_ ropts)]
where
-- Except in forecast mode, exclude future/forecast transactions.
excludeforecastq True = Any