From dd818e1c68e2dccc3ace46140b039fe4df0ed22d Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 23 Feb 2010 09:14:35 +0000 Subject: [PATCH] improved display of turtle router info git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2395 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/TurtleRouterDialog.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/TurtleRouterDialog.cpp b/retroshare-gui/src/gui/TurtleRouterDialog.cpp index e595d4c22..3d99ff87f 100644 --- a/retroshare-gui/src/gui/TurtleRouterDialog.cpp +++ b/retroshare-gui/src/gui/TurtleRouterDialog.cpp @@ -45,6 +45,9 @@ void TurtleRouterDialog::updateDisplay() for(int i=0;i<_f2f_TW->topLevelItemCount();++i) while(_f2f_TW->topLevelItem(i)->takeChild(0) != NULL) ; + for(uint i=0;isetText(0,"Search requests ("+QString::number(search_reqs_info.size())+")") ; for(uint i=0;isetText(0,"tunnel requests ("+QString::number(tunnel_reqs_info.size())+")") ; + // Ok, this is a N2 search, but there are very few elements in the list. for(int i=2;i<_f2f_TW->topLevelItemCount();) - if(_f2f_TW->topLevelItem(i)->childCount() == 0) + { + bool found = false ; + for(uint j=0;jtopLevelItem(i)->text(0).toStdString() == hashes_info[j][0]) + found=true ; + + if(!found) _f2f_TW->takeTopLevelItem(i) ; else ++i ; + } } QTreeWidgetItem *TurtleRouterDialog::findParentHashItem(const std::string& hash)