mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
small bug correction in display of unknown hashes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2434 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
af2705893d
commit
a511273160
@ -48,6 +48,8 @@ void TurtleRouterDialog::updateDisplay()
|
||||
for(uint i=0;i<hashes_info.size();++i)
|
||||
findParentHashItem(hashes_info[i][0]) ;
|
||||
|
||||
bool unknown_hash_found = false ;
|
||||
|
||||
// check that an entry exist for all hashes
|
||||
for(uint i=0;i<tunnels_info.size();++i)
|
||||
{
|
||||
@ -55,6 +57,9 @@ void TurtleRouterDialog::updateDisplay()
|
||||
|
||||
QTreeWidgetItem *parent = findParentHashItem(hash) ;
|
||||
|
||||
if(parent->text(0) == QString("Unknown hashes"))
|
||||
unknown_hash_found = true ;
|
||||
|
||||
QString str = QString::fromStdString("Tunnel id: "+tunnels_info[i][0] + "\t [" + tunnels_info[i][2] + "] --> [" + tunnels_info[i][1] + "]\t\t last transfer: " + tunnels_info[i][4]) ;
|
||||
stl.clear() ;
|
||||
stl.push_back(str) ;
|
||||
@ -88,7 +93,11 @@ void TurtleRouterDialog::updateDisplay()
|
||||
for(int i=2;i<_f2f_TW->topLevelItemCount();)
|
||||
{
|
||||
bool found = false ;
|
||||
for(uint j=0;j<hashes_info.size();++j)
|
||||
|
||||
if(_f2f_TW->topLevelItem(i)->text(0) == "Unknown hashes" && unknown_hash_found)
|
||||
found = true ;
|
||||
|
||||
for(uint j=0;j<hashes_info.size() && !found;++j)
|
||||
if(_f2f_TW->topLevelItem(i)->text(0).toStdString() == hashes_info[j][0])
|
||||
found=true ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user