diff --git a/src/model/CoinsProxyModel.cpp b/src/model/CoinsProxyModel.cpp index 0c4f4a0d..50318f7e 100644 --- a/src/model/CoinsProxyModel.cpp +++ b/src/model/CoinsProxyModel.cpp @@ -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; } \ No newline at end of file