diff --git a/declarativeimports/core/datamodel.cpp b/declarativeimports/core/datamodel.cpp index e30352d9f..7a985e6b6 100644 --- a/declarativeimports/core/datamodel.cpp +++ b/declarativeimports/core/datamodel.cpp @@ -239,6 +239,7 @@ void DataModel::setItems(const QString &sourceName, const QVariantList &list) void DataModel::removeSource(const QString &sourceName) { //FIXME: this could be way more efficient by not resetting the whole model + //FIXME: find a way to remove only the proper things also in the case where sources are items emit modelAboutToBeReset(); m_items.remove(sourceName); emit modelReset();