aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-11-24 20:20:01 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2011-11-24 20:20:01 +0100
commitd8b86408636388195596f6c7dded23f777f99a07 (patch)
tree85c6dec505d434240deec1dce942ff8b69faaec4 /src/qt
parentb790077c37339fb01e3596057f97eccf489540fc (diff)
allow for filtering addresses and labels by searching for the typed string anywhere, not just at the beginning (#641)
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/transactionfilterproxy.cpp2
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;