mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 17:50:13 +01:00
Debugger: Hook up all the debugger widgets again
New event system, context menus, and more.
This commit is contained in:
1 parent
e4d7d22e78
commit
c9ac4960bc
41 files changed
+1186
-810
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user