Skip to content
Snippets Groups Projects
Commit 66774a8b authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Load notes after timeline models are finished


Otherwise the notes cannot be associated with timeline events.

Change-Id: I9a2f039fddd36c9a6bbaca3c0864c75e33cc479d
Task-number: QTCREATORBUG-15077
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent e69bb933
No related branches found
No related tags found
No related merge requests found
......@@ -320,9 +320,10 @@ void QmlProfilerModelManager::complete()
{
switch (state()) {
case QmlProfilerDataState::ProcessingData:
// Load notes after the timeline models have been initialized.
d->notesModel->loadData();
// Load notes after the timeline models have been initialized ...
// which happens on stateChanged(Done).
setState(QmlProfilerDataState::Done);
d->notesModel->loadData();
break;
case QmlProfilerDataState::AcquiringData:
// Make sure the trace fits into the time span.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment