Debugger: Hook up all the debugger widgets again

New event system, context menus, and more.
This commit is contained in:
chaoticgd authored and Ty committed 2025-03-12 17:20:35 -04:00
1 parent e4d7d22e78
commit c9ac4960bc
41 files changed
+1186 -810

No files matched your search

+7 -2
View File
@@ -23,8 +23,13 @@ int ThreadModel::columnCount(const QModelIndex&) const
QVariant ThreadModel::data(const QModelIndex& index, int role) const
{
const auto threads = m_cpu.GetThreadList();
auto* const thread = threads.at(index.row()).get();
const std::vector<std::unique_ptr<BiosThread>> threads = m_cpu.GetThreadList();
size_t row = static_cast<size_t>(index.row());
if (row >= threads.size())
return QVariant();
const BiosThread* thread = threads[row].get();
if (role == Qt::DisplayRole)
{