diff options
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/WatchWidget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp index 170bfcc792..75d3f13ee6 100644 --- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp @@ -195,11 +195,10 @@ void WatchWidget::Update() QBrush brush = QPalette().brush(QPalette::Text); - const bool core_is_running = Core::IsRunning(m_system); - if (!core_is_running || !PowerPC::MMU::HostIsRAMAddress(guard, entry.address)) + if (!Core::IsRunning(m_system) || !PowerPC::MMU::HostIsRAMAddress(guard, entry.address)) brush.setColor(Qt::red); - if (core_is_running) + if (Core::IsRunning(m_system)) { if (PowerPC::MMU::HostIsRAMAddress(guard, entry.address)) { |
