forked from qt-creator/qt-creator
Timeline: Don't delete the models from TimelineModelAggregator::clear()
The aggregator doesn't own the models. They may live in separate plugins and should be cleared from the code where they are created. Change-Id: Icbde117561e530bd83fe752acd483e2c42692a1c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
committed by
Joerg Bornemann
parent
8ed3973aad
commit
941356be76
@@ -98,7 +98,6 @@ TimelineNotesModel *TimelineModelAggregator::notes() const
|
||||
|
||||
void TimelineModelAggregator::clear()
|
||||
{
|
||||
qDeleteAll(d->modelList);
|
||||
d->modelList.clear();
|
||||
if (d->notesModel)
|
||||
d->notesModel->clear();
|
||||
|
Reference in New Issue
Block a user