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 (, Qt::CaseInsensitive))
return true;
// search for account hierachy
if (filter.text.contains(':')) {
QStringList names;
MyMoneyAccount current = acc;
QString accountId;
do {
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