Subject: [kdepim-runtime] agents/nepomukfeeder: Reindex collections when reindexing Git commit 2190203b2485c6618d17297cc0b95ef6184b93f7 by Christian Mollekopf. Committed on 18/02/2012 at 21:42. Pushed by cmollekopf into branch 'master'. Reindex collections when reindexing M +1 -1 agents/nepomukfeeder/feederqueue.cpp http://commits.kde.org/kdepim-runtime/2190203b2485c6618d17297cc0b95ef6184b93f7 diff --git a/agents/nepomukfeeder/feederqueue.cpp b/agents/nepomukfeeder/feederqueue.cpp index 0bb564a..8144813 100644 --- a/agents/nepomukfeeder/feederqueue.cpp +++ b/agents/nepomukfeeder/feederqueue.cpp @@ -126,8 +126,8 @@ void FeederQueue::processNextCollection() emit running( i18n( "Indexing collection '%1'...", mCurrentCollection.name() )); kDebug() << "Indexing collection" << mCurrentCollection.name(); //TODO maybe reindex anyways to be sure that type etc is correct - if ( !Nepomuk::ResourceManager::instance()->mainModel()->containsAnyStatement( Soprano::Node(), Vocabulary::NIE::url(), mCurrentCollection.url() ) ) { //kDebug() << "adding collection to nepomuk"; + if ( !Nepomuk::ResourceManager::instance()->mainModel()->containsAnyStatement( Soprano::Node(), Vocabulary::NIE::url(), mCurrentCollection.url() ) || mReIndex ) { KJob *job = NepomukHelpers::addCollectionToNepomuk(mCurrentCollection); connect( job, SIGNAL(result(KJob*)), this, SLOT(jobResult(KJob*))); } |