Tracing: Don't restore notes for events that have been filtered out

Change-Id: I4dc13e579e7994bb970d121a2baa8169a8dd1b2b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2018-05-08 10:05:35 +02:00
parent aa3c9fc135
commit 4d8707afa4
3 changed files with 37 additions and 21 deletions

View File

@@ -110,14 +110,16 @@ void QmlProfilerNotesModel::stash()
continue;
int index = timelineIndex(i);
QmlNote save = {
model->typeId(index),
model->collapsedRow(index),
model->startTime(index),
model->duration(index),
text(i)
};
m_notes.append(save);
if (index < model->count()) {
QmlNote save = {
model->typeId(index),
model->collapsedRow(index),
model->startTime(index),
model->duration(index),
text(i)
};
m_notes.append(save);
}
}
resetModified();
}