From 7abd2009b0272353fb53a1a8109fb35ae969caf7 Mon Sep 17 00:00:00 2001 From: Ziemas Date: Tue, 20 May 2025 16:18:58 +0200 Subject: [PATCH] debugger: fix thread view row lookup --- pcsx2-qt/Debugger/ThreadView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcsx2-qt/Debugger/ThreadView.cpp b/pcsx2-qt/Debugger/ThreadView.cpp index 46dfc01798..6f520f2049 100644 --- a/pcsx2-qt/Debugger/ThreadView.cpp +++ b/pcsx2-qt/Debugger/ThreadView.cpp @@ -65,16 +65,17 @@ void ThreadView::openContextMenu(QPoint pos) void ThreadView::onDoubleClick(const QModelIndex& index) { + auto real_index = m_proxy_model->mapToSource(index); switch (index.column()) { case ThreadModel::ThreadColumns::ENTRY: { - goToInMemoryView(m_model->data(index, Qt::UserRole).toUInt(), true); + goToInDisassembler(m_model->data(real_index, Qt::UserRole).toUInt(), true); break; } default: // Default to PC { - QModelIndex pc_index = m_model->index(index.row(), ThreadModel::ThreadColumns::PC); + QModelIndex pc_index = m_model->index(real_index.row(), ThreadModel::ThreadColumns::PC); goToInDisassembler(m_model->data(pc_index, Qt::UserRole).toUInt(), true); break; }