summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@nokia.com>2010-09-24 16:55:22 +0200
committerChristiaan Janssen <christiaan.janssen@nokia.com>2010-09-24 16:56:03 +0200
commit492f4314ffb49a5774c8d601af4442651762228e (patch)
tree66b92f5cf9b804009a7b0cf8030aa5331cb02446 /src/plugins/debugger/debuggerplugin.cpp
parentd131334488d18575d2c6f462293ad717a8a92e46 (diff)
downloadqt-creator-492f4314ffb49a5774c8d601af4442651762228e.tar.gz
QmlObserver: disabling script console when context not available/clear
Reviewed by: Kai Koehne
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 2949972586..f5f55bbec5 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()