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:
Ulf Hermann
2015-04-10 14:20:11 +02:00
committed by Joerg Bornemann
parent 8ed3973aad
commit 941356be76

View File

@@ -98,7 +98,6 @@ TimelineNotesModel *TimelineModelAggregator::notes() const
void TimelineModelAggregator::clear()
{
qDeleteAll(d->modelList);
d->modelList.clear();
if (d->notesModel)
d->notesModel->clear();