\r
QModelIndex start = m_pTraceFileModel->index(0, glvdebug_QTraceFileModel::Column_PacketIndex);\r
\r
- QModelIndexList matches = ui->treeView->model()->match(start, Qt::DisplayRole, QVariant(packetIndex), 1, Qt::MatchFixedString | Qt::MatchRecursive | Qt::MatchWrap);\r
+ QModelIndexList matches = m_pTraceFileModel->match(start, Qt::DisplayRole, QVariant(packetIndex), 1, Qt::MatchFixedString | Qt::MatchRecursive | Qt::MatchWrap);\r
if (matches.count() > 0)\r
{\r
// for some reason, we need to recreate the index such that the index and parent both are for column 0\r
- QModelIndex updatedMatch = ui->treeView->model()->index(matches[0].row(), 0, ui->treeView->model()->index(matches[0].parent().row(), 0));\r
+ QModelIndex updatedMatch = m_pTraceFileModel->index(matches[0].row(), 0, m_pTraceFileModel->index(matches[0].parent().row(), 0));\r
\r
selectApicallModelIndex(updatedMatch, true, true);\r
ui->treeView->setFocus();\r