From 2ad71d046b25006f9101a9f98e11b4b9dc46e690 Mon Sep 17 00:00:00 2001 From: Ziemas Date: Wed, 16 Jul 2025 04:09:45 +0200 Subject: [PATCH] Debugger: Fix copying out of sorted thread view --- pcsx2-qt/Debugger/ThreadView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2-qt/Debugger/ThreadView.cpp b/pcsx2-qt/Debugger/ThreadView.cpp index 7a5a839e66..8b2787a837 100644 --- a/pcsx2-qt/Debugger/ThreadView.cpp +++ b/pcsx2-qt/Debugger/ThreadView.cpp @@ -58,7 +58,8 @@ void ThreadView::openContextMenu(QPoint pos) if (!selection_model->hasSelection()) return; - QGuiApplication::clipboard()->setText(m_model->data(selection_model->currentIndex()).toString()); + auto real_index = m_proxy_model->mapToSource(selection_model->currentIndex()); + QGuiApplication::clipboard()->setText(m_model->data(real_index).toString()); }); menu->addSeparator();