QmlProfiler: clear model manager only after saving the notes

The notes model wants to resolve IDs from timeline models when saving.

Change-Id: I02c6038c8519101f36db95183bfa05d01a531b97
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-06-02 10:20:52 +02:00
parent c81ed0bf9c
commit 3684585839

View File

@@ -442,8 +442,8 @@ void QmlProfilerModelManager::clear()
void QmlProfilerModelManager::restrictToRange(qint64 startTime, qint64 endTime)
{
setState(ClearingData);
d->notesModel->saveData();
setState(ClearingData);
setVisibleFeatures(0);
startAcquiring();