diff options
| author | mmbyday <mmbyday@protonmail.com> | 2018-12-22 13:34:19 -0800 |
|---|---|---|
| committer | mmbyday <mmbyday@protonmail.com> | 2018-12-22 13:34:19 -0800 |
| commit | e098a3f15eb7d5c967b966b51b8d78f0ba686a54 (patch) | |
| tree | 2af258759242ddd31d28b42da1c8260b1c64d398 /src/model | |
| parent | 002c800ee82bc84c3caa5afc31e84ea0d33c0204 (diff) | |
| download | monzero-gui-e098a3f15eb7d5c967b966b51b8d78f0ba686a54.tar.gz monzero-gui-e098a3f15eb7d5c967b966b51b8d78f0ba686a54.tar.xz monzero-gui-e098a3f15eb7d5c967b966b51b8d78f0ba686a54.zip | |
history: enable search by recipient address
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/TransactionHistorySortFilterModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/model/TransactionHistorySortFilterModel.cpp b/src/model/TransactionHistorySortFilterModel.cpp index c2dd0e6f..3277bde1 100644 --- a/src/model/TransactionHistorySortFilterModel.cpp +++ b/src/model/TransactionHistorySortFilterModel.cpp @@ -238,6 +238,9 @@ bool TransactionHistorySortFilterModel::filterAcceptsRow(int source_row, const Q data = sourceModel()->data(index, TransactionHistoryModel::TransactionTimeRole); if (data.toString().contains(m_searchString)) return true; + data = sourceModel()->data(index, TransactionHistoryModel::TransactionDestinationsRole); + if (data.toString().contains(m_searchString)) + return true; return false; } |
