changed function name to make it clearer what the function does
This commit is contained in:
parent
6977a17156
commit
fc2b7a76e2
3 changed files with 7 additions and 7 deletions
|
@ -346,9 +346,9 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
|
|
||||||
// central server address type combo box
|
// central server address type combo box
|
||||||
cbxCentServAddrType->clear();
|
cbxCentServAddrType->clear();
|
||||||
cbxCentServAddrType->addItem ( csAddTypeToString ( AT_MANUAL ) );
|
cbxCentServAddrType->addItem ( csCentServAddrTypeToString ( AT_MANUAL ) );
|
||||||
cbxCentServAddrType->addItem ( csAddTypeToString ( AT_DEFAULT ) );
|
cbxCentServAddrType->addItem ( csCentServAddrTypeToString ( AT_DEFAULT ) );
|
||||||
cbxCentServAddrType->addItem ( csAddTypeToString ( AT_GENERAL_NORTHAMERICA ) );
|
cbxCentServAddrType->addItem ( csCentServAddrTypeToString ( AT_GENERAL_NORTHAMERICA ) );
|
||||||
cbxCentServAddrType->setCurrentIndex ( static_cast<int> ( pClient->GetCentralServerAddressType() ) );
|
cbxCentServAddrType->setCurrentIndex ( static_cast<int> ( pClient->GetCentralServerAddressType() ) );
|
||||||
UpdateCentralServerDependency();
|
UpdateCentralServerDependency();
|
||||||
|
|
||||||
|
|
|
@ -188,9 +188,9 @@ lvwClients->setMinimumHeight ( 140 );
|
||||||
|
|
||||||
// central server address type combo box
|
// central server address type combo box
|
||||||
cbxCentServAddrType->clear();
|
cbxCentServAddrType->clear();
|
||||||
cbxCentServAddrType->addItem ( csAddTypeToString ( AT_MANUAL ) );
|
cbxCentServAddrType->addItem ( csCentServAddrTypeToString ( AT_MANUAL ) );
|
||||||
cbxCentServAddrType->addItem ( csAddTypeToString ( AT_DEFAULT ) );
|
cbxCentServAddrType->addItem ( csCentServAddrTypeToString ( AT_DEFAULT ) );
|
||||||
cbxCentServAddrType->addItem ( csAddTypeToString ( AT_GENERAL_NORTHAMERICA ) );
|
cbxCentServAddrType->addItem ( csCentServAddrTypeToString ( AT_GENERAL_NORTHAMERICA ) );
|
||||||
cbxCentServAddrType->setCurrentIndex ( static_cast<int> ( pServer->GetCentralServerAddressType() ) );
|
cbxCentServAddrType->setCurrentIndex ( static_cast<int> ( pServer->GetCentralServerAddressType() ) );
|
||||||
|
|
||||||
// update server name line edit
|
// update server name line edit
|
||||||
|
|
|
@ -571,7 +571,7 @@ enum ECSAddType
|
||||||
AT_GENERAL_NORTHAMERICA = 2
|
AT_GENERAL_NORTHAMERICA = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
inline QString csAddTypeToString ( ECSAddType eAddrType )
|
inline QString csCentServAddrTypeToString ( ECSAddType eAddrType )
|
||||||
{
|
{
|
||||||
switch ( eAddrType )
|
switch ( eAddrType )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue