From 3322af3bccad109cab492336e9f238d8209603f3 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 25 Apr 2011 13:24:22 +0000 Subject: [PATCH] only show country if set by the user (no default string) --- src/connectdlg.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/connectdlg.cpp b/src/connectdlg.cpp index 27398b8e..8dfcdb74 100755 --- a/src/connectdlg.cpp +++ b/src/connectdlg.cpp @@ -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 );