Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c83bfffd authored by David Faure's avatar David Faure

Don't react to dataChanged, collection IDs don't change.

Reviewed by Christian Mollekopf
parent c2d1f47f
......@@ -113,14 +113,6 @@ public:
}
}
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{
for (int row = topLeft.row(); row <= bottomRight.row(); row++) {
const QModelIndex idx = topLeft.parent().child(row, 0);
insertIfAvailable(idx);
}
}
/**
* Selects the index in the internal selection model to make the collection visible in the model
*/
......@@ -275,7 +267,6 @@ FavoriteCollectionsModel::FavoriteCollectionsModel(QAbstractItemModel *source, c
connect(source, SIGNAL(modelReset()), this, SLOT(reload()));
connect(source, SIGNAL(layoutChanged()), this, SLOT(reload()));
connect(source, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(rowsInserted(QModelIndex,int,int)));
connect(source, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(dataChanged(QModelIndex,QModelIndex)));
}
FavoriteCollectionsModel::~FavoriteCollectionsModel()
......
......@@ -160,7 +160,6 @@ private:
Q_PRIVATE_SLOT(d, void reload())
Q_PRIVATE_SLOT(d, void rowsInserted(QModelIndex, int, int))
Q_PRIVATE_SLOT(d, void dataChanged(QModelIndex, QModelIndex))
//@endcond
};
......
Markdown is supported
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