small fix for initialization of host address in case not actual address could be obtained
This commit is contained in:
parent
d0b017df54
commit
b625a77521
1 changed files with 494 additions and 491 deletions
|
@ -419,12 +419,15 @@ CLlconHelpMenu::CLlconHelpMenu ( QWidget* parent ) : QMenu ( "&?", parent )
|
||||||
/******************************************************************************\
|
/******************************************************************************\
|
||||||
* Other Classes *
|
* Other Classes *
|
||||||
\******************************************************************************/
|
\******************************************************************************/
|
||||||
bool LlconNetwUtil::ParseNetworkAddress ( QString strAddress,
|
bool LlconNetwUtil::ParseNetworkAddress ( QString strAddress,
|
||||||
CHostAddress& HostAddress )
|
CHostAddress& HostAddress )
|
||||||
{
|
{
|
||||||
QHostAddress InetAddr;
|
QHostAddress InetAddr;
|
||||||
quint16 iNetPort = LLCON_DEFAULT_PORT_NUMBER;
|
quint16 iNetPort = LLCON_DEFAULT_PORT_NUMBER;
|
||||||
|
|
||||||
|
// init requested host address with invalid address first
|
||||||
|
HostAddress = CHostAddress();
|
||||||
|
|
||||||
// parse input address for the type [IP address]:[port number]
|
// parse input address for the type [IP address]:[port number]
|
||||||
QString strPort = strAddress.section ( ":", 1, 1 );
|
QString strPort = strAddress.section ( ":", 1, 1 );
|
||||||
if ( !strPort.isEmpty() )
|
if ( !strPort.isEmpty() )
|
||||||
|
|
Loading…
Reference in a new issue