Qt: Fix a crash in the memory viewer

This commit is contained in:
Jeffrey Pfau 2015-11-04 23:28:13 -08:00
parent ebc7c2e50f
commit de557fcbdd
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Bugfixes:
- Qt: Fix clear button/analog buttons in gamepad mapper on some platforms - Qt: Fix clear button/analog buttons in gamepad mapper on some platforms
- GBA Video: Fix _mix for 15-bit color - GBA Video: Fix _mix for 15-bit color
- Qt: Fix font size in memory viewer - Qt: Fix font size in memory viewer
- Qt: Fix a crash in the memory viewer
Misc: Misc:
- GBA Audio: Implement missing flags on SOUNDCNT_X register - GBA Audio: Implement missing flags on SOUNDCNT_X register

View File

@ -80,6 +80,9 @@ void MemoryView::updateStatus() {
m_ui.uintVal->clear(); m_ui.uintVal->clear();
return; return;
} }
if (!m_controller->isLoaded()) {
return;
}
ARMCore* cpu = m_controller->thread()->cpu; ARMCore* cpu = m_controller->thread()->cpu;
union { union {
uint32_t u32; uint32_t u32;