mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added a state message for examining files.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2672 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
34fefb37aa
commit
c307d8bb9a
@ -297,6 +297,8 @@ void FileIndexMonitor::updateCycle()
|
||||
mInCheck = true;
|
||||
}
|
||||
|
||||
cb->notifyHashingInfo("Examining shared files...") ;
|
||||
|
||||
std::vector<DirContentToHash> to_hash ;
|
||||
|
||||
while(moretodo)
|
||||
@ -514,6 +516,8 @@ void FileIndexMonitor::updateCycle()
|
||||
if(!to_hash.empty())
|
||||
hashFiles(to_hash) ;
|
||||
|
||||
cb->notifyHashingInfo("") ;
|
||||
|
||||
{ /* LOCKED DIRS */
|
||||
RsStackMutex stack(fiMutex); /**** LOCKED DIRS ****/
|
||||
|
||||
@ -579,7 +583,7 @@ void FileIndexMonitor::hashFiles(const std::vector<DirContentToHash>& to_hash)
|
||||
std::ostringstream tmpout;
|
||||
tmpout << cnt+1 << "/" << n_files << " (" << int(size/double(total_size)*100.0) << "%) : " << to_hash[i].fentries[j].name ;
|
||||
|
||||
cb->notifyHashingInfo(tmpout.str()) ;
|
||||
cb->notifyHashingInfo("Hashing file " + tmpout.str()) ;
|
||||
|
||||
FileEntry fe(to_hash[i].fentries[j]) ; // copied, because hashFile updates the hash member
|
||||
|
||||
@ -609,7 +613,6 @@ void FileIndexMonitor::hashFiles(const std::vector<DirContentToHash>& to_hash)
|
||||
|
||||
}
|
||||
|
||||
cb->notifyHashingInfo("") ;
|
||||
cb->notifyListChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
|
||||
}
|
||||
|
||||
|
@ -391,7 +391,7 @@ void MainWindow::updateHashingInfo(const QString& s)
|
||||
_hashing_info_label->hide() ;
|
||||
else
|
||||
{
|
||||
_hashing_info_label->setText("Hashing file " + s) ;
|
||||
_hashing_info_label->setText(s) ;
|
||||
_hashing_info_label->show() ;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user