Performed cleanup in CtrlMemView.cpp

This commit is contained in:
pal1000 2013-11-21 15:10:20 +02:00
parent 61cf802836
commit 2f52872eb3

View file

@ -436,16 +436,7 @@ void CtrlMemView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
case ID_MEMVIEW_DUMP:
{
DumpMemoryWindow dump(wnd, debugger);
bool priorDumpWasStepping = Core_IsStepping();
if (!priorDumpWasStepping) // If emulator isn't paused
{
Core_EnableStepping(true); //force paused state
}
dump.exec();
if (!priorDumpWasStepping) // If emulator wasn't paused before dumping
{
Core_EnableStepping(false); //Resume emulation automatically
}
break;
}