only show country if set by the user (no default string)
This commit is contained in:
parent
7cf080a63d
commit
3322af3bcc
1 changed files with 5 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue