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

@@ -144,7 +144,7 @@ QmlProfilerEngine::~QmlProfilerEngine()
delete d;
}
void QmlProfilerEngine::start()
bool QmlProfilerEngine::start()
{
if (d->m_runner) {
delete d->m_runner;
@@ -156,7 +156,7 @@ void QmlProfilerEngine::start()
if (rc->observerPath().isEmpty()) {
QmlProjectManager::QmlProjectPlugin::showQmlObserverToolWarning();
AnalyzerManager::stopTool();
return;
return false;
}
}
@@ -166,7 +166,7 @@ void QmlProfilerEngine::start()
if (!qmlRunner->hasExecutable()) {
showNonmodalWarning(tr("No executable file to launch."));
AnalyzerManager::stopTool();
return;
return false;
}
}
@@ -184,6 +184,7 @@ void QmlProfilerEngine::start()
}
AnalyzerManager::handleToolStarted();
return true;
}
void QmlProfilerEngine::stop()