]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Coins: add description to search
authortobtoht <thotbot@protonmail.com>
Fri, 2 Jul 2021 15:03:18 +0000 (17:03 +0200)
committertobtoht <thotbot@protonmail.com>
Fri, 2 Jul 2021 15:03:18 +0000 (17:03 +0200)
src/model/CoinsProxyModel.cpp

index 1920d806a07b4eb6a5a6be0f9454764fe3c917b5..0c4f4a0df91bf077cb268a7a215f0d3ef13e6272 100644 (file)
@@ -30,7 +30,8 @@ bool CoinsProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceP
 
     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->hash().contains(m_searchRegExp) || coin->addressLabel().contains(m_searchRegExp)
+                || coin->description().contains(m_searchRegExp);
     }
 
     return !(!m_showSpent && coin->spent()) && coin->subaddrAccount() == 0;