added some code for debugging purpose

This commit is contained in:
Volker Fischer 2012-07-09 07:24:35 +00:00
parent 3b539351b1
commit 7cf53d7099

View file

@ -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