diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics_breakpoints.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoints.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cpp index 5973aafc8..df5579e15 100644 --- a/src/citra_qt/debugger/graphics_breakpoints.cpp +++ b/src/citra_qt/debugger/graphics_breakpoints.cpp | |||
| @@ -36,7 +36,9 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const | |||
| 36 | switch (role) { | 36 | switch (role) { |
| 37 | case Qt::DisplayRole: | 37 | case Qt::DisplayRole: |
| 38 | { | 38 | { |
| 39 | if (index.column() == 0) { | 39 | switch (index.column()) { |
| 40 | case 0: | ||
| 41 | { | ||
| 40 | std::map<Pica::DebugContext::Event, QString> map; | 42 | std::map<Pica::DebugContext::Event, QString> map; |
| 41 | map.insert({Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded")}); | 43 | map.insert({Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded")}); |
| 42 | map.insert({Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed")}); | 44 | map.insert({Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed")}); |
| @@ -46,8 +48,13 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const | |||
| 46 | _dbg_assert_(GUI, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); | 48 | _dbg_assert_(GUI, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); |
| 47 | 49 | ||
| 48 | return map[event]; | 50 | return map[event]; |
| 49 | } else if (index.column() == 1) { | 51 | } |
| 52 | |||
| 53 | case 1: | ||
| 50 | return data(index, Role_IsEnabled).toBool() ? tr("Enabled") : tr("Disabled"); | 54 | return data(index, Role_IsEnabled).toBool() ? tr("Enabled") : tr("Disabled"); |
| 55 | |||
| 56 | default: | ||
| 57 | break; | ||
| 51 | } | 58 | } |
| 52 | 59 | ||
| 53 | break; | 60 | break; |