From 6972bc1cb8ee431a69f70d52bed88bb930de2113 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 17 Aug 2009 17:11:32 +0000 Subject: [PATCH] improved turtle router console git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1542 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/TurtleRouterDialog.cpp | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/retroshare-gui/src/gui/TurtleRouterDialog.cpp b/retroshare-gui/src/gui/TurtleRouterDialog.cpp index 30b1513c7..ae4fcb768 100644 --- a/retroshare-gui/src/gui/TurtleRouterDialog.cpp +++ b/retroshare-gui/src/gui/TurtleRouterDialog.cpp @@ -40,6 +40,7 @@ void TurtleRouterDialog::showUp() _instance = new TurtleRouterDialog ; _instance->show() ; + _instance->update() ; } void TurtleRouterDialog::removeFileHash() @@ -60,21 +61,24 @@ void TurtleRouterDialog::removeFileHash() void TurtleRouterDialog::update() { - std::cout << "updatign turtle router console."<< std::endl ; + if(isVisible()) + { + std::cout << "updatign turtle router console."<< std::endl ; - std::vector > hashes_info ; - std::vector > tunnels_info ; - std::vector > search_reqs_info ; - std::vector > tunnel_reqs_info ; + std::vector > hashes_info ; + std::vector > tunnels_info ; + std::vector > search_reqs_info ; + std::vector > tunnel_reqs_info ; - rsTurtle->getInfo(hashes_info,tunnels_info,search_reqs_info,tunnel_reqs_info) ; + rsTurtle->getInfo(hashes_info,tunnels_info,search_reqs_info,tunnel_reqs_info) ; - // now display this in the QTableWidgets - - fillTable( _hashes_TW, hashes_info) ; - fillTable( _tunnels_TW, tunnels_info) ; - fillTable( _tunnel_reqs_TW, tunnel_reqs_info) ; - fillTable( _search_reqs_TW, search_reqs_info) ; + // now display this in the QTableWidgets + + fillTable( _hashes_TW, hashes_info) ; + fillTable( _tunnels_TW, tunnels_info) ; + fillTable( _tunnel_reqs_TW, tunnel_reqs_info) ; + fillTable( _search_reqs_TW, search_reqs_info) ; + } } void TurtleRouterDialog::fillTable(QTableWidget *table,const std::vector >& data)