QmlProfiler: managing failed starts gracefully

Change-Id: Ice0debcb6b83977b8f50dd154687e7c5c6abac7b
Reviewed-on: http://codereview.qt.nokia.com/2113
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Christiaan Janssen
2011-07-25 14:49:07 +02:00
parent 5f78511187
commit b421f3eca7
10 changed files with 21 additions and 16 deletions

View File

@@ -119,9 +119,11 @@ void AnalyzerRunControl::start()
TaskHub *hub = pm->getObject<TaskHub>();
hub->clearTasks(Constants::ANALYZERTASK_ID);
d->m_isRunning = true;
emit started();
d->m_engine->start();
if (d->m_engine->start()) {
d->m_isRunning = true;
emit started();
}
}
RunControl::StopResult AnalyzerRunControl::stop()