glvdebug: Fix highlighting API call in call tree when replayer is paused and a proxyM...
authorPeter Lohrmann <peterl@valvesofware.com>
Thu, 12 Feb 2015 23:45:45 +0000 (15:45 -0800)
committerJon Ashburn <jon@lunarg.com>
Tue, 24 Feb 2015 18:52:55 +0000 (11:52 -0700)
* There was inconsistency in which model was being used to get the QModelIndex, which caused nothing to be highlighted in the API call tree.

tools/glave/src/glvdebug/glvdebug.cpp

index 2244e68..6a3389c 100755 (executable)
@@ -256,11 +256,11 @@ void glvdebug::select_call_at_packet_index(unsigned long long packetIndex)
 \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