X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=SyncerThread.cpp;h=e01cb92fac0742e780f8371fa30235b175f2d4b4;hb=HEAD;hp=2a5e3b134f041f57f6a245e72687fd0c55f5ac45;hpb=4a42d572d56c1f913fe1a98f79ecd4853b53622d;p=qwerkisync diff --git a/SyncerThread.cpp b/SyncerThread.cpp index 2a5e3b1..e01cb92 100644 --- a/SyncerThread.cpp +++ b/SyncerThread.cpp @@ -92,9 +92,11 @@ void SyncerThread::run() QDir().rmpath(CurrentSettings().Directory()); DBBackends::AllBackends allBackends(CurrentSettings()); - EventProcessors::Writer eventWriter(CurrentSettings()); + NumberToNameLookup lookup; // Prepare the telephone-address book ID lookup. + EventProcessors::Writer eventWriter(CurrentSettings(), lookup); QObject::connect(&eventWriter, SIGNAL(EventProcessed(int,int)), this, SIGNAL(EventProcessed(int,int))); allBackends.Process(eventWriter); + QObject::disconnect(&eventWriter, SIGNAL(EventProcessed(int,int)), this, SIGNAL(EventProcessed(int,int))); } else { @@ -167,7 +169,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;