changed function name to make it clearer what the function does

This commit is contained in:
Volker Fischer 2020-05-16 11:28:05 +02:00
parent 6977a17156
commit fc2b7a76e2
3 changed files with 7 additions and 7 deletions

View file

@ -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();

View file

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

View file

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