From a5112731609cdb4e3927c5a3937c2ada24c90a0e Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 26 Feb 2010 14:34:46 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/TurtleRouterDialog.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/TurtleRouterDialog.cpp b/retroshare-gui/src/gui/TurtleRouterDialog.cpp index 3d99ff87f..6bf8c8378 100644 --- a/retroshare-gui/src/gui/TurtleRouterDialog.cpp +++ b/retroshare-gui/src/gui/TurtleRouterDialog.cpp @@ -48,6 +48,8 @@ void TurtleRouterDialog::updateDisplay() for(uint i=0;itext(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;jtopLevelItem(i)->text(0) == "Unknown hashes" && unknown_hash_found) + found = true ; + + for(uint j=0;jtopLevelItem(i)->text(0).toStdString() == hashes_info[j][0]) found=true ;