From 7cf53d70999d880dcd16d861fe1432e45074f187 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 9 Jul 2012 07:24:35 +0000 Subject: [PATCH] added some code for debugging purpose --- src/connectdlg.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/connectdlg.cpp b/src/connectdlg.cpp index 2ae74c6a..f65dda86 100755 --- a/src/connectdlg.cpp +++ b/src/connectdlg.cpp @@ -169,7 +169,7 @@ void CConnectDlg::showEvent ( QShowEvent* ) TimerReRequestServList.start ( SERV_LIST_REQ_UPDATE_TIME_MS ); } } - + void CConnectDlg::hideEvent ( QHideEvent* ) { // get the IP address to be used according to the following definitions: @@ -290,6 +290,13 @@ void CConnectDlg::SetServerList ( const CHostAddress& InetAddr, QLocale::countryToString ( vecServerInfo[iIdx].eCountry ); } +// for debugging, plot address infos in connect dialog +// Do not enable this for official versions! +#if 0 +strLocation += ", " + vecServerInfo[iIdx].HostAddr.InetAddr.toString() + + ":" + QString().setNum ( vecServerInfo[iIdx].HostAddr.iPort ); +#endif + pNewListViewItem->setText ( 3, strLocation ); // init the minimum ping time with a large number (note that this number