forked from qt-creator/qt-creator
debugger: fix state of stop action in state DebuggerFinished
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user