only show country if set by the user (no default string)

This commit is contained in:
Volker Fischer 2011-04-25 13:24:22 +00:00
parent 7cf080a63d
commit 3322af3bcc

View File

@ -240,8 +240,11 @@ void CConnectDlg::SetServerList ( const CHostAddress& InetAddr,
{
strLocation += ", ";
}
strLocation +=
QLocale::countryToString ( vecServerInfo[iIdx].eCountry );
if ( vecServerInfo[iIdx].eCountry != QLocale::AnyCountry )
{
strLocation +=
QLocale::countryToString ( vecServerInfo[iIdx].eCountry );
}
pNewListViewItem->setText ( 3, strLocation );