forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user