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