mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-17 09:47:36 +00:00
Coins: fix filter
This commit is contained in:
parent
e4531a9e30
commit
a49a31ad86
1 changed files with 5 additions and 1 deletions
|
@ -28,11 +28,15 @@ bool CoinsProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceP
|
|||
{
|
||||
CoinsInfo* coin = m_coins->coin(sourceRow);
|
||||
|
||||
if (!m_showSpent && coin->spent()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!m_searchRegExp.pattern().isEmpty()) {
|
||||
return coin->pubKey().contains(m_searchRegExp) || coin->address().contains(m_searchRegExp)
|
||||
|| coin->hash().contains(m_searchRegExp) || coin->addressLabel().contains(m_searchRegExp)
|
||||
|| coin->description().contains(m_searchRegExp);
|
||||
}
|
||||
|
||||
return !(!m_showSpent && coin->spent()) && coin->subaddrAccount() == 0;
|
||||
return true;
|
||||
}
|
Loading…
Reference in a new issue