X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=SyncerThread.cpp;h=754123b69daa1a58335acf33d6313a0ad78d4e85;hb=04b1a38b50ac1b0a547e49eed30a65a766fcd528;hp=da364734c6eb11e2b6db0ba42a5c2c2f1e282f34;hpb=09cf284409d11f5269cbc106429046f993bffa68;p=qwerkisync diff --git a/SyncerThread.cpp b/SyncerThread.cpp index da36473..754123b 100644 --- a/SyncerThread.cpp +++ b/SyncerThread.cpp @@ -167,7 +167,7 @@ void SyncerThread::run() foreach(iHashable::Hash hash, newHashes) qDebug() << hash << endl; - // Now an optimisation: group the new hases by the files they come + // Now an optimisation: group the new hashes by the files they come // from. This enables each file to only be parsed once and return // all the required events from it. QHash > newHashesByPath; @@ -187,7 +187,8 @@ void SyncerThread::run() qDebug() << "Importing new events"; - // Re-parse the new events + // Re-parse the new events and insert them + allBackends.PreInsert(); { int idx = 0; foreach(QString filename, newHashesByPath.keys()) @@ -225,9 +226,7 @@ void SyncerThread::run() emit EventProcessed(idx, newHashes.count()); } } - - // Perform any post-insert cleanup (i.e. reindexing) - allBackends.PostInsert(); + allBackends.PostInsert(); // Perform any post-insert cleanup (i.e. reindexing) // Need to find a better way of refreshing the conversations view... QProcess::execute("pkill rtcom");