forked from qt-creator/qt-creator
QmlProfiler: read trace when application ended by the user
This patch avoids showing the "use the stop button" if the application dies but the trace data was sent in time. Note: with the current implementation in Qt5, the application sometimes closes before all data could be sent. That happens with any non-trivial qml application. Change-Id: Ie7b1568b2d69320d1887587dccac40a4b4d4d788 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
@@ -376,6 +376,7 @@ IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp
|
||||
connect(engine, SIGNAL(starting(const Analyzer::IAnalyzerEngine*)), this, SLOT(setAppIsRunning()));
|
||||
connect(engine, SIGNAL(finished()), this, SLOT(setAppIsStopped()));
|
||||
connect(this, SIGNAL(cancelRun()), engine, SLOT(finishProcess()));
|
||||
connect(engine, SIGNAL(applicationDied()), d->m_traceWindow, SLOT(applicationDied()));
|
||||
emit fetchingData(d->m_recordButton->isChecked());
|
||||
|
||||
return engine;
|
||||
|
Reference in New Issue
Block a user