Commit 33bae0d7 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Suppress fetching of modules/registers in invalid states.

Reviewed-by: hjk
parent e2ec9b03
...@@ -905,19 +905,19 @@ public slots: ...@@ -905,19 +905,19 @@ public slots:
void sourceFilesDockToggled(bool on) void sourceFilesDockToggled(bool on)
{ {
if (on) if (on && m_currentEngine->state() == InferiorStopOk)
m_currentEngine->reloadSourceFiles(); m_currentEngine->reloadSourceFiles();
} }
void modulesDockToggled(bool on) void modulesDockToggled(bool on)
{ {
if (on) if (on && m_currentEngine->state() == InferiorStopOk)
m_currentEngine->reloadModules(); m_currentEngine->reloadModules();
} }
void registerDockToggled(bool on) void registerDockToggled(bool on)
{ {
if (on) if (on && m_currentEngine->state() == InferiorStopOk)
m_currentEngine->reloadRegisters(); m_currentEngine->reloadRegisters();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment