Commit 941356be authored by Ulf Hermann's avatar Ulf Hermann Committed by Joerg Bornemann
Browse files

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: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent 8ed3973a
......@@ -98,7 +98,6 @@ TimelineNotesModel *TimelineModelAggregator::notes() const
void TimelineModelAggregator::clear()
{
qDeleteAll(d->modelList);
d->modelList.clear();
if (d->notesModel)
d->notesModel->clear();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment