Skip to content

Commit

Permalink
Search by tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Nov 20, 2020
1 parent 129f245 commit af8efa6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/SortedTransactionsModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ bool SortedTransactionsModel::filterAcceptsRow(int _row, const QModelIndex &_par
QModelIndex index3 = sourceModel()->index(_row, 3, _parent);
QModelIndex index4 = sourceModel()->index(_row, 4, _parent);
QModelIndex index5 = sourceModel()->index(_row, 5, _parent);
QModelIndex index6 = sourceModel()->index(_row, 6, _parent);

return (sourceModel()->data(index2).toString().contains(searchstring,Qt::CaseInsensitive)
|| sourceModel()->data(index3).toString().contains(searchstring,Qt::CaseInsensitive)
|| sourceModel()->data(index4).toString().contains(searchstring,Qt::CaseInsensitive)
|| sourceModel()->data(index5).toString().contains(searchstring,Qt::CaseInsensitive));
|| sourceModel()->data(index5).toString().contains(searchstring,Qt::CaseInsensitive)
|| sourceModel()->data(index6).toString().contains(searchstring,Qt::CaseInsensitive));

return true;
}
Expand Down

0 comments on commit af8efa6

Please sign in to comment.