Skip to content

Commit

Permalink
[Model][Performance] Double index call locking cs_wallet and cs_main …
Browse files Browse the repository at this point in the history
…twice for every single record fix.
  • Loading branch information
furszy committed Jan 22, 2020
1 parent 76f29fc commit 9d94ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/transactiontablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ QModelIndex TransactionTableModel::index(int row, int column, const QModelIndex&
Q_UNUSED(parent);
TransactionRecord* data = priv->index(row);
if (data) {
return createIndex(row, column, priv->index(row));
return createIndex(row, column, data);
}
return QModelIndex();
}
Expand Down

0 comments on commit 9d94ea6

Please sign in to comment.