another fixme :/

svn path=/trunk/KDE/kdebase/runtime/; revision=1194426
This commit is contained in:
Marco Martin 2010-11-08 23:10:16 +00:00
parent 29f4ac0d99
commit 681000ff05

View File

@ -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();