From 492f4314ffb49a5774c8d601af4442651762228e Mon Sep 17 00:00:00 2001
From: Christiaan Janssen <christiaan.janssen@nokia.com>
Date: Fri, 24 Sep 2010 16:55:22 +0200
Subject: [PATCH] QmlObserver: disabling script console when context not
 available/clear Reviewed by: Kai Koehne

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

diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 2949972586f..f5f55bbec50 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -2228,6 +2228,8 @@ void DebuggerPluginPrivate::setInitialState()
     theDebuggerAction(ExpandStack)->setEnabled(false);
     theDebuggerAction(ExecuteCommand)->setEnabled(m_state == InferiorStopOk);
 
+    m_scriptConsoleWindow->setEnabled(false);
+
     //emit m_plugin->stateChanged(m_state);
 }
 
@@ -2357,6 +2359,8 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
         || m_state == DebuggerFinished
         || m_state == InferiorUnrunnable;
     setBusyCursor(!notbusy);
+
+    m_scriptConsoleWindow->setEnabled(stopped);
 }
 
 void DebuggerPluginPrivate::resetLocation()
-- 
GitLab