From: Frederic Cervenansky Date: Tue, 12 Oct 2010 14:52:56 +0000 (+0000) Subject: fix minor bug with Qt X-Git-Tag: Creatools2-0-3.creaImageIO0-2-5.17Feb2011~25 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=bc6c883d5af385d9fb3878364a42ca1c272f16c5;p=creaImageIO.git fix minor bug with Qt --- diff --git a/src/creaImageIOTreeHandlerImageAdder.cpp b/src/creaImageIOTreeHandlerImageAdder.cpp index 3e2ff04..ce619c3 100644 --- a/src/creaImageIOTreeHandlerImageAdder.cpp +++ b/src/creaImageIOTreeHandlerImageAdder.cpp @@ -222,18 +222,16 @@ namespace creaImageIO bool valid = mSynchronizer->isIndexed(itr->string());//true;//=mTimestampHandler->AddDirectory(dirpath, itr->string(), lastModif, time(0),mCurrentDB); if(valid) { - + std::string path(itr->string()); mProgress.IncNumberScannedFiles(); - boost::algorithm::replace_all( itr->string(), - INVALID_FILE_SEPARATOR , - VALID_FILE_SEPARATOR); + boost::algorithm::replace_all( path,INVALID_FILE_SEPARATOR,VALID_FILE_SEPARATOR); i_sc.ReadAttributes(itr->string(),attr); // mTreeHandler->GetTopLevelNodeId("FullFileName",itr->string(),parent_id); mTreeHandler->AddBranch(attr); mProgress.IncNumberHandledFiles(); std::stringstream removedOn; removedOn<InsertIgnoreFile(addKey, itr->string(),"0",removedOn.str(),mCurrentDB); + mSynchronizer->InsertIgnoreFile(addKey, path,"0",removedOn.str(),mCurrentDB); mProgressSignal(mProgress);