Skip to content

Commit 8167cfd

Browse files
committed
WIP
1 parent b7ebe39 commit 8167cfd

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/qt/transactionview.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,22 @@ void TransactionView::focusTransaction(const uint256& txid)
601601
TransactionTableModel::TxHashRole,
602602
QString::fromStdString(txid.ToString()));
603603

604+
fprintf(stderr, "isEmpty?");
605+
604606
if (results.isEmpty()) return;
605607

606-
focusTransaction(results[0]);
608+
fprintf(stderr, "Go loop");
609+
610+
for (QModelIndexList::const_iterator it = results.begin(); it != results.end(); ++it) {
611+
const QModelIndex idx = *it;
612+
QModelIndex targetIdx = transactionProxyModel->mapFromSource(idx);
613+
fprintf(stderr, "row: %d", targetIdx.row());
614+
615+
transactionView->selectRow(targetIdx.row());
616+
transactionView->selectRow(targetIdx.row() + 1);
617+
}
618+
619+
// focusTransaction(results[0]);
607620
}
608621

609622
// We override the virtual resizeEvent of the QWidget to adjust tables column

0 commit comments

Comments
 (0)