Commit 7aacbd70 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Revert "Fix 'Ledger search box doesn't support account hierarchy character ":"'"

This reverts commit 7e618064.
parent 275ad378
......@@ -693,20 +693,6 @@ bool Transaction::matches(const RegisterFilter& filter) const
if (acc.name().contains(filter.text, Qt::CaseInsensitive))
return true;
// search for account hierachy
if (filter.text.contains(':')) {
QStringList names;
MyMoneyAccount current = acc;
QString accountId;
do {
names.prepend(current.name());
accountId = current.parentAccountId();
current = file->account(accountId);
} while (!MyMoneyFile::instance()->isStandardAccount(accountId));
if (names.size() > 1 && names.join(":").contains(filter.text, Qt::CaseInsensitive))
return true;
}
QString s(filter.text);
s.replace(MyMoneyMoney::thousandSeparator(), QChar());
if (!s.isEmpty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment