diff options
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/filters.cc b/src/filters.cc index 6b91aab4..3e481139 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -472,12 +472,10 @@ void collapse_posts::report_subtotal() value_t& collapse_posts::find_totals(account_t* account) { - unsigned short depth=3; - - if (depth == 0) + if (collapse_depth == 0) return totals[_("<Total>")]; - if (account->depth == depth) + if (account->depth == collapse_depth) return totals[account->fullname()]; //else recurse |