From 692ca763a14e9edc622596fecb3d975dbc221f68 Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Thu, 26 Oct 2023 19:13:00 -0400 Subject: [PATCH] Debugger: Use the proper data role for sorting threads --- pcsx2-qt/Debugger/CpuWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcsx2-qt/Debugger/CpuWidget.cpp b/pcsx2-qt/Debugger/CpuWidget.cpp index 693d546275f1a..d9d569c12a58e 100644 --- a/pcsx2-qt/Debugger/CpuWidget.cpp +++ b/pcsx2-qt/Debugger/CpuWidget.cpp @@ -72,6 +72,7 @@ CpuWidget::CpuWidget(QWidget* parent, DebugInterface& cpu) connect(m_ui.threadList, &QTableView::doubleClicked, this, &CpuWidget::onThreadListDoubleClick); m_threadProxyModel.setSourceModel(&m_threadModel); + m_threadProxyModel.setSortRole(Qt::UserRole); m_ui.threadList->setModel(&m_threadProxyModel); m_ui.threadList->setSortingEnabled(true); m_ui.threadList->sortByColumn(ThreadModel::ThreadColumns::ID, Qt::SortOrder::AscendingOrder);