Debugger: Don't fetch more data for console after engine shutdown

The engine might not exist anymore.

Change-Id: I7a542de7fb8b160d71a1650d37263e4433f97003
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2017-01-05 15:25:13 +01:00
parent 8d08c601d5
commit abc4e96886
3 changed files with 16 additions and 1 deletions

View File

@@ -249,6 +249,7 @@ void Console::writeSettings() const
void Console::setScriptEvaluator(const ScriptEvaluator &evaluator)
{
m_scriptEvaluator = evaluator;
m_consoleItemModel->setCanFetchMore(bool(m_scriptEvaluator));
if (!m_scriptEvaluator)
setContext(QString());
}