File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments