[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim-runtime/KDE/4.8] agents/nepomukfeeder: Reindex collections when reindexing
From: Christian Mollekopf <chrigi_1 () fastmail ! fm>
Date: 2012-02-29 23:34:30
Message-ID: 20120229233430.EBFECA60C4 () git ! kde ! org
[Download RAW message or body]
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/5922b768ba1a994104ceabad9b5011279f46ea0d
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*)));
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic