diff options
author | hjk <qtc-committer@nokia.com> | 2010-07-08 14:26:35 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-07-14 17:49:15 +0200 |
commit | 85243e19a99e088df7d1d994a11d9d1a845d9c3e (patch) | |
tree | db15c8e1943a794494483bfdc59e321b30dc4f16 /src/plugins/debugger/script/scriptengine.cpp | |
parent | e721b9f70f7af001f1d3ae55c870f70a082bb054 (diff) | |
download | qt-creator-85243e19a99e088df7d1d994a11d9d1a845d9c3e.tar.gz |
debugger: encapsulate part of the startup logic in the base class
Diffstat (limited to 'src/plugins/debugger/script/scriptengine.cpp')
-rw-r--r-- | src/plugins/debugger/script/scriptengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/script/scriptengine.cpp b/src/plugins/debugger/script/scriptengine.cpp index 70ffe85190..2109f0ba72 100644 --- a/src/plugins/debugger/script/scriptengine.cpp +++ b/src/plugins/debugger/script/scriptengine.cpp @@ -255,9 +255,10 @@ void ScriptEngine::startEngine() if (!scriptFile.open(QIODevice::ReadOnly|QIODevice::Text)) { showMessage(QString::fromLatin1("Cannot open %1: %2"). arg(m_scriptFileName, scriptFile.errorString()), LogError); - startFailed(); + notifyEngineStartFailed(); return; } + notifyEngineStarted(); QTextStream stream(&scriptFile); m_scriptContents = stream.readAll(); scriptFile.close(); @@ -266,7 +267,6 @@ void ScriptEngine::startEngine() showStatusMessage(tr("Running requested..."), 5000); showMessage(QLatin1String("Running: ") + m_scriptFileName, LogMisc); QTimer::singleShot(0, this, SLOT(runInferior())); - startSuccessful(); } void ScriptEngine::continueInferior() |