From kde-commits Wed Feb 29 23:34:30 2012 From: Christian Mollekopf Date: Wed, 29 Feb 2012 23:34:30 +0000 To: kde-commits Subject: [kdepim-runtime/KDE/4.8] agents/nepomukfeeder: Reindex collections when reindexing Message-Id: <20120229233430.EBFECA60C4 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=133055851709510 Git commit 5922b768ba1a994104ceabad9b5011279f46ea0d by Christian Mollekopf. Committed on 18/02/2012 at 21:42. Pushed by cmollekopf into branch 'KDE/4.8'. Reindex collections when reindexing (cherry picked from commit 2190203b2485c6618d17297cc0b95ef6184b93f7) M +1 -1 agents/nepomukfeeder/feederqueue.cpp http://commits.kde.org/kdepim-runtime/5922b768ba1a994104ceabad9b5011279f46e= a0d diff --git a/agents/nepomukfeeder/feederqueue.cpp b/agents/nepomukfeeder/fe= ederqueue.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.na= me() )); kDebug() << "Indexing collection" << mCurrentCollection.name(); //TODO maybe reindex anyways to be sure that type etc is correct - if ( !Nepomuk::ResourceManager::instance()->mainModel()->containsAnyStat= ement( Soprano::Node(), Vocabulary::NIE::url(), mCurrentCollection.url() ) = ) { //kDebug() << "adding collection to nepomuk"; + if ( !Nepomuk::ResourceManager::instance()->mainModel()->containsAnyStat= ement( Soprano::Node(), Vocabulary::NIE::url(), mCurrentCollection.url() ) = || mReIndex ) { KJob *job =3D NepomukHelpers::addCollectionToNepomuk(mCurrentCollectio= n); connect( job, SIGNAL(result(KJob*)), this, SLOT(jobResult(KJob*))); }