From de557fcbddc6736dd9234d0494fd896b0927a57d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 4 Nov 2015 23:28:13 -0800 Subject: [PATCH] Qt: Fix a crash in the memory viewer --- CHANGES | 1 + src/platform/qt/MemoryView.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 4b2b2c8d2..c7ab849ec 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ Bugfixes: - Qt: Fix clear button/analog buttons in gamepad mapper on some platforms - GBA Video: Fix _mix for 15-bit color - Qt: Fix font size in memory viewer + - Qt: Fix a crash in the memory viewer Misc: - GBA Audio: Implement missing flags on SOUNDCNT_X register diff --git a/src/platform/qt/MemoryView.cpp b/src/platform/qt/MemoryView.cpp index afcc1feb9..3b43592d2 100644 --- a/src/platform/qt/MemoryView.cpp +++ b/src/platform/qt/MemoryView.cpp @@ -80,6 +80,9 @@ void MemoryView::updateStatus() { m_ui.uintVal->clear(); return; } + if (!m_controller->isLoaded()) { + return; + } ARMCore* cpu = m_controller->thread()->cpu; union { uint32_t u32;