summaryrefslogtreecommitdiff
path: root/LiteEditor/DebuggerDisassemblyTab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LiteEditor/DebuggerDisassemblyTab.cpp')
-rw-r--r--LiteEditor/DebuggerDisassemblyTab.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/LiteEditor/DebuggerDisassemblyTab.cpp b/LiteEditor/DebuggerDisassemblyTab.cpp
index 7abae7de..985b3a91 100644
--- a/LiteEditor/DebuggerDisassemblyTab.cpp
+++ b/LiteEditor/DebuggerDisassemblyTab.cpp
@@ -275,8 +275,11 @@ void DebuggerDisassemblyTab::OnRefreshView(clCommandEvent& e)
e.Skip();
IDebugger* debugger = DebuggerMgr::Get().GetActiveDebugger();
if(debugger && debugger->IsRunning() && ManagerST::Get()->DbgCanInteract()) {
- debugger->ListRegisters();
- debugger->Disassemble("", -1);
+ // Only update disass view if the view is visible
+ if(ManagerST::Get()->IsDebuggerViewVisible(DebuggerPane::DISASSEMBLY)) {
+ debugger->ListRegisters();
+ debugger->Disassemble("", -1);
+ }
}
}