Commit d43bc73d authored by hjk's avatar hjk
Browse files

debugger: fix state of stop action in state DebuggerFinished

parent 688da996
......@@ -2265,7 +2265,10 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
// This is only needed when we insist on using Shift-F5 for Interrupt.
// Removing the block makes F5 interrupt when running and continue when stopped.
Core::ActionManager *am = core->actionManager();
if (m_state == InferiorStopOk || m_state == InferiorUnrunnable) {
bool stopIsKill = m_state == InferiorStopOk
|| m_state == InferiorUnrunnable
|| m_state == DebuggerFinished;
if (stopIsKill) {
am->command(Constants::STOP)->setKeySequence(QKeySequence(STOP_KEY));
am->command(PE::DEBUG)->setKeySequence(QKeySequence("F5"));
} else {
......
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