From d43bc73d03b3fdc5610e5ea7b0e1f8d1367b2469 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 22 Jul 2010 17:25:00 +0200
Subject: [PATCH] debugger: fix state of stop action in state DebuggerFinished

---
 src/plugins/debugger/debuggerplugin.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 0915fe45c43..e2442ae85cf 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -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 {
-- 
GitLab