Commit a9aaa60c authored by Marcel Wiesweg's avatar Marcel Wiesweg
Browse files

Check that the new source model is not actually already the source model. Qt...

Check that the new source model is not actually already the source model. Qt does not seem to make this test.

CCBUG: 303994
parent 23fd28f9
......@@ -143,7 +143,10 @@ void AlbumFilterModel::setSourceAlbumModel(AbstractAlbumModel* source)
}
else
{
setSourceModel(source);
if (source != sourceModel())
{
setSourceModel(source);
}
}
}
......@@ -159,8 +162,11 @@ void AlbumFilterModel::setSourceFilterModel(AlbumFilterModel* source)
}
}
m_chainedModel = source;
setSourceModel(source);
if (m_chainedModel != source || sourceModel() != source)
{
m_chainedModel = source;
setSourceModel(source);
}
}
void AlbumFilterModel::setSourceModel(QAbstractItemModel* model)
......
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