diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-11-24 20:20:01 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-11-24 20:20:01 +0100 |
commit | d8b86408636388195596f6c7dded23f777f99a07 (patch) | |
tree | 85c6dec505d434240deec1dce942ff8b69faaec4 | |
parent | b790077c37339fb01e3596057f97eccf489540fc (diff) |
allow for filtering addresses and labels by searching for the typed string anywhere, not just at the beginning (#641)
-rw-r--r-- | src/qt/transactionfilterproxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/transactionfilterproxy.cpp b/src/qt/transactionfilterproxy.cpp index a4c5b37171..16fb4dab92 100644 --- a/src/qt/transactionfilterproxy.cpp +++ b/src/qt/transactionfilterproxy.cpp @@ -35,7 +35,7 @@ bool TransactionFilterProxy::filterAcceptsRow(int sourceRow, const QModelIndex & return false; if(datetime < dateFrom || datetime > dateTo) return false; - if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix)) + if (!address.contains(addrPrefix, Qt::CaseInsensitive) && !label.contains(addrPrefix, Qt::CaseInsensitive)) return false; if(amount < minAmount) return false; |